forked from samtools/htsjdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (45 loc) · 1.13 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
language: java
dist: trusty
sudo: true
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.m2
jdk:
- oraclejdk8
- openjdk8
- openjdk11
matrix:
fast_finish: true
allow_failures:
- env: TEST_TYPE=EXTERNAL_APIS
- env: TEST_TYPE=FTP
include:
- jdk: oraclejdk8
env: TEST_TYPE=EXTERNAL_APIS
- jdk: oraclejdk8
env: TEST_TYPE=FTP
- jdk: openjdk8
env: SPOT_BUGS=true
script:
- if [[ $SPOT_BUGS == "true" ]]; then
./gradlew spotBugsMain spotBugsTest;
elif [[ $TEST_TYPE == "FTP" ]]; then
./gradlew testFTP jacocoTestReport;
elif [[ $TEST_TYPE == "EXTERNAL_APIS" ]]; then
./gradlew testExternalApis jacocoTestReport;
else
./gradlew test jacocoTestReport;
fi
after_success:
- bash <(curl -s https://codecov.io/bash)
- echo "TRAVIS_BRANCH='$TRAVIS_BRANCH'";
echo "JAVA_HOME='$JAVA_HOME'";
if [ "$TRAVIS_BRANCH" == "master" ]; then
if [[ $JAVA_HOME = *java-8-openjdk* ]]; then
./gradlew publish;
fi;
fi;