forked from biocore/biom-format
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (35 loc) · 1.32 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
# Modified from https://github.com/biocore/scikit-bio/
language: python
python:
- "2.7"
env:
- NUMPY_VERSION=1.7
- NUMPY_VERSION=1.8
- NUMPY_VERSION=1.8 USE_H5PY=True
- NUMPY_VERSION=1.8 USE_CYTHON=True
- NUMPY_VERSION=1.7 USE_H5PY=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=$TRAVIS_PYTHON_VERSION pip numpy=$NUMPY_VERSION scipy nose pep8 Sphinx coverage
- if [ ${USE_CYTHON} ]; then conda install --yes -n env_name cython; fi
- if [ ${USE_H5PY} ]; then conda install --yes -n env_name h5py>=2.2.0; fi
- source activate env_name
- pip install coveralls pyqi
- pip install -e . --no-deps
script:
- nosetests --with-doctest --with-coverage
- pep8 biom setup.py
- biom show-install-info
- make -C doc html
# we can only validate the tables if we have H5PY
- if [ ${USE_H5PY} ]; then for table in examples/*hdf5.biom; do echo ${table}; biom validate-table -i ${table}; done; fi
# validate JSON formatted tables
- for table in examples/*table.biom; do echo ${table}; biom validate-table -i ${table} --is-json; done;
after_success:
- coveralls