-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (35 loc) · 1.36 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
language: java
jdk:
# - oraclejdk8
# - oraclejdk9
# - oraclejdk11
- openjdk11
- openjdk-ea
- openjdk8
#jdk: oraclejdk8
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.sonar/cache
- $HOME/.cache
- $HOME/.m2
#addons:
# sonarcloud:
# organization: "jukusoft"
#don't do a shallow clone (for sonarqube)
git:
depth: 9999999
script:
- mvn clean install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
- "if [ $TRAVIS_BRANCH == \"master\" ] && [ $TRAVIS_JDK_VERSION == \"openjdk8\" ] ; then { mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=jukusoft -Dsonar.login=${SONAR_TOKEN}; }; fi"
# - mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=jukusoft -Dsonar.login=${SONAR_TOKEN}
# - mvn -e clean org.jacoco:jacoco-maven-plugin:prepare-agent install sonar:sonar -Dsonar.login=${SONAR_TOKEN}
after_success:
- "echo $TRAVIS_JDK_VERSION"
- "[[ $TRAVIS_BRANCH == \"master\" ]] && [[ $TRAVIS_JDK_VERSION == \"openjdk8\" ]] && { mvn deploy --settings .maven.xml -DuniqueVersion=false; };"
notifications:
email: false