forked from GIScience/openrouteservice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (34 loc) · 1.38 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
language: java
jdk: openjdk8
sudo: required
dist: trusty
before_install:
- sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
- sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
- ip addr # for confirmation. can be skipped
branches:
only:
- master
- development
- /hotfix.*/
addons:
sonarcloud:
organization: "giscience"
git:
depth: false # required for sonarcloud
script:
- cp ${TRAVIS_BUILD_DIR}/openrouteservice-api-tests/conf/app.config.test ${TRAVIS_BUILD_DIR}/openrouteservice/src/main/resources/app.config
- mvn -f ${TRAVIS_BUILD_DIR}/openrouteservice/pom.xml dependency:resolve dependency:resolve-plugins -B
- if [[ "$TRAVIS_PULL_REQUEST" == "false" || \
"$TRAVIS_PULL_REQUEST_SLUG" == "$TRAVIS_REPO_SLUG" ]];
then
mvn -f ${TRAVIS_BUILD_DIR}/openrouteservice/pom.xml org.jacoco:jacoco-maven-plugin:prepare-agent install sonar:sonar -B;
else
mvn -f ${TRAVIS_BUILD_DIR}/openrouteservice/pom.xml install -B;
fi
- mvn -f ${TRAVIS_BUILD_DIR}/openrouteservice/pom.xml tomcat7:run -B &
- sleep 5m # for sleeping more than 10m use 'travis_wait 20 sleep 20m'
- curl http://127.0.0.1:8082/openrouteservice-5.0/health
- mvn -f ${TRAVIS_BUILD_DIR}/openrouteservice-api-tests/pom.xml test
notifications:
webhooks: https://chat.gistools.geog.uni-heidelberg.de/hooks/fqX555ZPxYFdHeqhS/2kxt4rNATiJ9cB8pLmkSc2R3mrxnmJrEQZFd7JKqiPEGFnW9