-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
43 lines (30 loc) · 972 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
32
33
34
35
36
37
38
39
40
41
42
43
language: python
python:
- "3.7"
# command to install dependencies
before_install:
- sudo apt-get update
install:
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda env create -f cond_env.yml
- source activate physcraper_env
- pip install -r requirements.txt
- pip install -e .
- export PYTHONPATH=$PYTHONPATH:$(pwd)
# install requirements for testing
- pip install codecov
- pip install pytest pytest-cov
- wget 'https://ftp.ncbi.nlm.nih.gov/pub/taxonomy/taxdump.tar.gz'
- gunzip -cd taxdump.tar.gz | (tar xvf - names.dmp nodes.dmp)
- mv *.dmp taxonomy/
script:
#- py.test tests/ --setup-only
#- sh tests/run_tests.sh
- pytest --cov=./ tests
after_success:
- codecov