forked from nextstrain/augur
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (40 loc) · 1.46 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
version: ~> 1.0
language: generic
# See <https://docs.travis-ci.com/user/build-stages/> for more information on
# how build stages work.
stages:
- test
# See <https://docs.travis-ci.com/user/conditions-v1> for more on the "if" syntax.
- name: deploy
if: branch = release and type != pull_request
jobs:
include:
- &test
stage: test
language: python
python: 3.6
before_install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- conda create -n augur -c bioconda python=$TRAVIS_PYTHON_VERSION mafft raxml fasttree iqtree vcftools pip
- source activate augur
install:
- pip install -e .[dev]
script:
- (pytest -c pytest.python3.ini --cov-report= --cov=augur)
- (cram --shell=/bin/bash tests/functional/*.t tests/builds/*.t)
- (bash tests/builds/runner.sh)
after_success:
# upload to codecov
- bash <(curl -s https://codecov.io/bash) -f "!*.gcov" -X gcov -e TRAVIS_PYTHON_VERSION -y ci/codecov.yml|| echo "Codecov did not collect coverage reports"
- <<: *test
python: 3.7
- <<: *test
python: 3.8
- stage: deploy
script: ./devel/travis-rebuild-docker-image