-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
47 lines (38 loc) · 1.62 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
# config file for automatic testing at travis-ci.org
language: python
python:
- "2.7"
install:
# update periodically - saves downloading if version is the same
- if [[ "${TRAVIS_PYTHON_VERSION}" == "2.7" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- 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
# useful for debugging any issues with conda
- conda info -a
# create a new conda env
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION pytest coverage numpy=1.9.2 bcolz=0.10 cython scipy PyYAML>=3.10 ipython pandas>=0.11.0 pyflakes pyzmq
- source activate test-environment
- conda install -c bioconda pysam pybedtools cyvcf2
- pip install gemini
# install dependencies
- pip install -r requirements.txt
- pip install -r requirements-dev.txt
# install your own package + executables
- pip install --editable .
# pull HapMap and HapMapSV database
- wget https://s3-us-west-2.amazonaws.com/robinandeer/HapMapFew.db -O tests/fixtures/HapMapFew.db
- wget https://s3-us-west-2.amazonaws.com/robinandeer/HapMapSv.db -O tests/fixtures/HapMapSv.db
script:
# command to run tests and collect test coverage
- py.test --flakes --cov-report html --cov puzzle tests/
notifications:
email: false
after_success:
coveralls