forked from biocore/emperor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
28 lines (28 loc) · 1.08 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
language: python
python:
- "2.7"
env:
- NUMPY_VERSION="" WITH_COVERAGE=1 # environment to test with the latest version of NumPy
- NUMPY_VERSION="=1.8"
- NUMPY_VERSION="=1.7"
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=$TRAVIS_PYTHON_VERSION pip numpy${NUMPY_VERSION} scipy matplotlib openpyxl=1.8.2 pandas nose flake8 pep8
- source activate env_name
- pip install sphinx sphinx-bootstrap-theme coverage coveralls
- pip install -e '.[all]'
script:
- flake8 emperor/*.py tests/*.py scripts/*.py setup.py
# execute the full test suite
- python tests/all_tests.py --emperor_scripts_dir scripts
# we just check coverage in the latest version of NumPy
- if [ ${WITH_COVERAGE} ]; then nosetests emperor --with-coverage --cover-package=emperor --cover-inclusive tests; fi
- make -C doc html
after_success:
- coveralls