forked from samtools/htsjdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (53 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
language: java
dist: trusty
sudo: true
services:
- docker
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.m2
env:
global:
- HTSJDK_SAMTOOLS_BIN=/usr/bin/samtools
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
before_install:
- scripts/install-samtools.sh
- scripts/htsget-scripts/start-htsget-test-server.sh
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://raw.githubusercontent.com/broadinstitute/codecov-bash-uploader/main/codecov-verified.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;