forked from biowdl/somatic-variantcalling
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (60 loc) · 2.29 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
60
61
62
63
64
65
66
67
# 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:
- pytest --tag $TEST tests/
matrix:
include:
- env: TEST=Mutect2Paired
- env: TEST=Mutect2Unpaired
- env: TEST=SomaticVariantcallingPairedTrained
- env: TEST=SomaticVariantcallingPairedTrainedRunCombine
- env: TEST=SomaticVariantcallingUnpairedTrained
- env: TEST=SomaticVariantcallingUnpairedTrainedRunCombine
- env: TEST=SomaticVariantcallingPairedConsensus
- env: TEST=SomaticVariantcallingPairedConsensusRunCombine
- env: TEST=SomaticVariantcallingUnpairedConsensus
- env: TEST=SomaticVariantcallingUnpairedConsensusRunCombine
- env: TEST=StrelkaPaired
- env: TEST=StrelkaPairedRunCombine
- env: TEST=StrelkaUnpaired
- env: TEST=StrelkaUnpairedRunCombine
- env: TEST=StrelkaPairedWithoutManta
- env: TEST=StrelkaPairedWithoutMantaRunCombine
- env: TEST=StrelkaUnpairedWithoutManta
- env: TEST=StrelkaUnpairedWithoutMantaRunCombine
- env: TEST=VardictPaired
- env: TEST=VardictUnpaired
# 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)