forked from artic-network/fieldbioinformatics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (32 loc) · 1.37 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
dist: xenial
language: python # this works for Linux but is an error on macOS or Windows
jobs:
include:
- name: "Python 3.6 on Xenial Linux"
python: 3.6 # this works for Linux but is ignored on macOS or Windows
- name: "Python 3.6 on macOS"
os: osx
language: shell # 'language: python' is an error on Travis CI macOS
python: 3.6
install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then MINICONDA_OS=Linux; else MINICONDA_OS=MacOSX; fi
- wget https://repo.anaconda.com/miniconda/Miniconda3-latest-$MINICONDA_OS-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p "$HOME"/miniconda
- source "$HOME/miniconda/etc/profile.d/conda.sh"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- conda env create -f environment.yml
- conda activate artic
- python setup.py install
script:
# run the unit tests
- pytest -s artic/*_unit_test.py
# run the pipeline test for the medaka pipeline variant
- ./test-runner.sh medaka
# run the pipeline test for the nanopolish pipeline variant
- ./test-runner.sh nanopolish
# run some of the variant set validation functional tests (will download test data)
- pytest -s artic/minion_validator.py --workFlow nanopolish --numValidations 1
- pytest -s artic/minion_validator.py --workFlow medaka --numValidations 2