-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
50 lines (43 loc) · 1.52 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
# We use conda to install cromwell.
language: python
python:
- 3.6
services:
- docker
before_install:
# Install conda
- export MINICONDA=${HOME}/miniconda
- export PATH=${MINICONDA}/bin:${PATH}
- wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -f -p ${MINICONDA}
- conda config --set always_yes yes
- conda config --add channels defaults
- conda config --add channels bioconda
- conda config --add channels conda-forge
install:
- conda install --file requirements-test.txt
script:
- travis_wait 30 python3 -m pytest --tag $TEST tests/
matrix:
include:
- env:
- TEST=ExampleTest
- _JAVA_OPTIONS="-Dconfig.file=tests/cromwell_config/docker.conf"
# Below is for testing if all files are valid and if all submodules are up to date.
- env: TEST=Womtool validate and submodule up to date
install:
- conda install cromwell
script:
- set -e
- for F in *.wdl; do echo $F; womtool validate $F; done
- >
if [ "$TRAVIS_PULL_REQUEST" != "false" ];
then git submodule foreach bash -c
'if [ "$(git tag --contains)" == "" ] ;
then git checkout develop && git pull &&
git submodule update --init --recursive ;
else echo "on tag: $(git tag --contains)" ; fi' ;
fi
- >
git diff --exit-code ||
(echo ERROR: Git changes detected. Submodules should either be tagged or on the latest version of develop. && exit 1)