forked from scikit-bio/scikit-bio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
32 lines (32 loc) · 1.23 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
# Check on http://lint.travis-ci.org/ after modifying it! Originally
# modified from https://gist.github.com/dan-blanchard/7045057
language: python
env:
- PYTHON_VERSION=3.4 NUMPY_VERSION=1.8
- PYTHON_VERSION=2.7 NUMPY_VERSION=1.8 WITH_DOCTEST=True USE_CYTHON=TRUE
- PYTHON_VERSION=2.7 NUMPY_VERSION=1.7 WITH_DOCTEST=True
before_install:
- wget http://repo.continuum.io/miniconda/Miniconda-2.2.2-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=/home/travis/anaconda/bin:$PATH
# Update conda itself
- conda update --yes conda
install:
- conda create --yes -n env_name python=$PYTHON_VERSION pip numpy=$NUMPY_VERSION scipy matplotlib pandas nose pep8 flake8 Sphinx
- if [ ${USE_CYTHON} ]; then conda install --yes -n env_name cython; fi
- source activate env_name
- pip install sphinx-bootstrap-theme future coverage coveralls
- pip install -e . --no-deps
script:
- if [ ${WITH_DOCTEST} ]; then nosetests --with-doctest; else nosetests; fi
- pep8 skbio setup.py
- flake8 skbio setup.py
- pushd doc
- make clean
- make html
- popd
# we need to run the test suite from setup.py for coveralls to grab the info
- coverage run setup.py test
- coverage report -m
- coveralls