-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
31 lines (27 loc) · 851 Bytes
/
.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
language: python
before_install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=/home/travis/miniconda3/bin:$PATH
- conda update --yes conda
- conda info -a
install:
# python version = 3.6 via envs/snakemake.yml
- conda env create --file envs/snakemake.yml -n test-env
- conda install -n test-env --yes flake8 nose coveralls
- source activate test-env
- pip install -e .
script:
- source activate test-env
# setup dummy test data
- chmod +x ci/setup_demo_data.sh
- ci/setup_demo_data.sh
# snakemake dry run
- snakemake -n -r --configfile ci/config.yaml
# unit tests
- nosetests -v benchutils --with-coverage --cover-package=benchutils
# lint
- flake8 benchutils/ setup.py
after_success:
- coveralls