forked from broadinstitute/gatk-protected
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
59 lines (54 loc) · 1.88 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
57
58
59
language: java
sudo: required
dist: trusty
jdk:
- oraclejdk8
env:
matrix:
- RUN_CROMWELL=true TEST_DOCKER=false
- RUN_CROMWELL=false TEST_DOCKER=false
- RUN_CROMWELL=false TEST_DOCKER=true
global:
#limit gradle jvm memory usage
- GRADLE_OPTS=-Xmx512m
- secure: Da9Brv5WKCE3z0bp5u52X1Rqul5C/r7idGj/yLhHnlEvHXPDQHaGXEQw4fNhRkB586lx6xilO8sra2FHoLDMKsqwE0h2+NKsrHQepTSFOR/fp/otoA/kiBue23ZfhsAEFn/uliVU36xLkt+LsyVqSKa+9JKDA5z1hXSemXGGVGw=
before_install:
# Added from hellbender public
- sudo mkdir -p /usr/local/lib/R/
- sudo mkdir -p site-library
- sudo ln -sFv ~/site-library /usr/local/lib/R/site-library
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
- sudo add-apt-repository "deb http://cran.rstudio.com/bin/linux/ubuntu trusty/"
- sudo apt-get update
- sudo apt-get install -y --force-yes r-base-dev=3.1.3-1trusty
- sudo apt-get install -y --force-yes r-base-core=3.1.3-1trusty
- sudo Rscript scripts/install_R_packages.R
# Install git-lfs, and fetch the large test files
- sudo bash scripts/install_git_lfs.sh
# Download cromwell jar
- if [[ $RUN_CROMWELL == true ]]; then
wget -O ~/cromwell-0.19.3.jar https://github.com/broadinstitute/cromwell/releases/download/0.19.3/cromwell-0.19.3.jar;
fi
install:
- if [[ $RUN_CROMWELL == true ]]; then
./gradlew shadowJar;
elif [[$TEST_DOCKER == false ]]; then
./gradlew assemble;
fi
script:
- if [[ $RUN_CROMWELL == true ]]; then
echo "Running ACNV pipeline";
bash scripts/acnv_cromwell_tests/run_acnv_pipelines.sh;
elif [[ $TEST_DOCKER == true ]]; then
echo "Building docker image with unit tests...";
cd scripts/docker/;
sudo bash build_docker.sh -e `git rev-parse ${TRAVIS_BRANCH}` -s;
else
./gradlew check;
fi
after_success:
- if [[ $RUN_CROMWELL == false ]] && [[ $TEST_DOCKER == false ]]; then
./gradlew jacocoTestReport coveralls;
fi
after_failure:
- dmesg | tail -100