This repository has been archived by the owner on Sep 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
/
.travis.yml
73 lines (64 loc) · 4.7 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#
#
# Copyright 2016 The Symphony Software Foundation
#
# Licensed to The Symphony Software Foundation (SSF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
before_script: "if [[ \"$TRAVIS_PULL_REQUEST\" = \"false\" ]]; then curl -s https://raw.githubusercontent.com/symphonyoss/contrib-toolbox/master/scripts/download-files.sh | bash ; fi"
language: java
install: true
script:
# Build for PRs
- "if [[ \"$TRAVIS_PULL_REQUEST\" != \"false\" ]]; then mvn clean install && true ; fi"
# Build for master branch
- "if [[ $TRAVIS_BRANCH =~ master && \"$TRAVIS_PULL_REQUEST\" = \"false\" ]]; then mvn clean deploy -Pintegration-testing,versioneye,sonar,whitesource --settings settings.xml ; fi"
# Build for dev branch
- "if [[ $TRAVIS_BRANCH =~ dev && \"$TRAVIS_PULL_REQUEST\" = \"false\" ]]; then mvn clean deploy -Pintegration-testing,sonar,whitesource --settings settings.xml ; fi"
jdk:
- oraclejdk8
notifications:
email:
recipients:
env:
global:
#Required env for integration testing
- FOUNDATION_API_URL=https://foundation-dev-api.symphony.com
- FOUNDATION_POD_URL=https://foundation-dev.symphony.com
- SESSIONAUTH_URL=$FOUNDATION_API_URL/sessionauth
- KEYAUTH_URL=$FOUNDATION_API_URL/keyauth
- POD_URL=$FOUNDATION_POD_URL/pod
- AGENT_URL=$FOUNDATION_POD_URL/agent
- TEST_ROOM_STREAM=276YAAI9Kzvl3wRA+z2hln___qV6zxh9dA
# Need to "gem install travis" first
# Generated using command "travis encrypt COVERITY_SCAN_TOKEN=blah"
- secure: "C4A49ZOQceU/ArLstDxMwn2XSZqvuZW+OA8ZGM0ktGN+yXEXymNYO2c5jgzwXkCzaGrnRTrFH509W1BO003SXkBsLRgC/kYupkPR4sSuWAm575IW8QCrBjWozU42aK4ZUfaFMsW1dQ99LTB6DeyjzWJCG0PKqfU+xjw0v+GJzMBEcj6Es0lHkCk8AjmbuKJkbq06WN/GP+0tVE+AavtGQoWNx34Za7BrY/6sUJkuwevIOc3IkjYN8JCZdKo8QPYDevzg2kBWhI2kX3prau+20uHQjsBqub1sYEuyQ3Ndxj+8ZzJP3M7j4QAcufJMjUxOfFnFLbmvXcj7N2zjVc6/c6z5MW3hoVY2WW+1WGUnoD3lK410SPe+W/eIlJqiYpn10dE7+rcSS4iWCVc8luGXXzgemK/yfgbPAnSWEeHJjKnHdUj6hX3He1Ef4sRjmfXlsd0NuKoshw1IH1mGezZ8yy2shKPmZAvbBaX77bebpd/gfOJE+6i2NbfFyicMJMpruHNbiQ2JQk0QRdFdV569wlmiBzLH/AneyIXWT3/VsMDNL1pAXIl8UCBa2HdQcidINMmHyYD2VDzhEsFrzWGP5EJK1WUo3tecJqor2BpnoWlOxVazZnF3MBAzYcM6ldv/jCYQWAyVSYq/oG/GcipXuwbq0sJHQs5/wIdyetDvFGU="
# Generated using command "travis encrypt SONAR_LOGIN=blah"
- secure: "WdxH3NpGCQ8oIUnr49KFDX1bK3T1ZPcRrgcjo13ekPjskN3AvjkviqX045iPzxw0He9OtbwrPIn27xYddGtb/Q4dAFV5zH5vdCMBuCToicJz8d1svXXjdKoWnrQLGVQ0hTLrWMQff7goN10LRzjuRQQj6u3K1mc21IlWaE3Rn0DNthebqNmPjIXvvCiAwNvaa8EVUiHzz02/wynpJPajeD/Uf2NxjQ4auIqrA5a7jVvJtYv2mJA/HhQBzanJdDxyXJsxlf7DPViBMWxmBpSpNlXiu3nNxkfCkJpiHcLmTIQTw8i8HwSmi9WnS2xyjFAt510HJpACufi5j58yXFRSIDeuxbwsn09LPFB4/L/Gx2laPSbsRe55jG1mQoD58wGTYPX5YusPyDTLM1Nw3rxbHdCd6cxrOkQ4FgotkasLqEa8HmhRu//PqB5M7MUkSLuP65yUHdHn4pdhKR+G9v1uDII5ZDyoidMjlRuL0Ty3PLJdQqyzvh2Wxwc7zECL0ZLeeYdBpAtZYw7S7nyMSituMYQDgsRmT3ISCNLQJor3vMwrtBXaxujS18cox+GsqedtH9hoUZm2Zwoq0MknsTmWOK8n+ey/EFg66tViI1Y24U3PfBT0ZHsviJRRqxpE2ULyVxJNXuesAkoFEsdAVDWjyqQ4E3PrNI8dYq9p2P/tWFQ="
# Generated using command "travis encrypt VERSIONEYE_API_KEY=blah"
- secure: "PQa140WousHjTIpK7gkUT0a1ewTkvZ4lj72ypqi5dZ34tib3JVpqpqGgu5IF7B1pgo43hhbOt33k8UdGTsGQdOc++b7MaVWGKQmCTNXozeo8XKJmDybWHewEebbkmQkImEvpQFBTB96VPhSwVin1h+cQr8dk2qVio4ljpPQhLGhtY2iukDjrwndkDNza8q/H4jRCcgqIExJqaM8bqh9hhMoxI7fFURRFasJx3/vuL4wWkC+rl5sWS1JK8msyjLr6CM7lwmMKeA5Di5iViO0k5NifOgAe6Kty0WGQZoTXY0QZUzHDfIxiUmARG5hOEj6/bbnJEo7ylOtkQMP2QRI2CV+4iHClkSmMXv7beQkTkhAu+9/5lILf+na81FFE5lbih3kqokdUM532jfY+Ltt6GofRWNw8A76qprDTjcpnOx22+YFStU0BqTHvCfokjJdDg4AdlzvqHx/YMhvlywVWqwzC8Pi6dqfrtnQdW+PBQN2ytdHAwCT9LwDONAQSg3G+5FJshir9Abz2JhH7QiD1YvU+br+2hJeMaR8M7pxzA1bvHEq08zKxyhKOrnJmznwSLXG/Avih99qNtUBCzgIpDUj3duX/Ml8xnYY42dPQUwtEFrpkxQSRxLunM91BTkMxwb0vX6G18TA93kwbKMvYLh6tIFtRC6niO1sz5j7L5S0="
addons:
coverity_scan:
project:
name: "symphonyoss/symphony-java-client"
description: "Build submitted via Travis CI"
notification_email: [email protected]
build_command_prepend: "mvn clean"
build_command: "mvn -DskipTests=true compile install"
branch_pattern: $COVERITY_BRANCH_PATTERN