forked from broadinstitute/picard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (34 loc) · 927 Bytes
/
.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
dist: trusty
language: java
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.m2
env:
matrix:
- RUN_BARCLAY_TESTS=true
- RUN_BARCLAY_TESTS=false
jdk:
- oraclejdk8
- openjdk8
- openjdk11
before_install:
- wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
- sudo apt-get -qq update
- sudo apt-get install -y --no-install-recommends r-base-dev r-recommended qpdf
script:
- if [[ $RUN_BARCLAY_TESTS == true ]]; then
echo "Running tests using the Barclay command line parser.";
./gradlew barclayTest;
else
echo "Running tests using the legacy Picard command line parser.";
./gradlew jacocoTestReport;
fi
after_success:
- ./gradlew coveralls
- if [ "$TRAVIS_BRANCH" == "master" ]; then
./gradlew uploadArchives;
fi