forked from biocore/biom-format
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (41 loc) · 1.95 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
# Modified from https://github.com/biocore/scikit-bio/
language: python
env:
- PYTHON_VERSION=2.7 USE_H5PY=True NOSE_ARGS="--with-doctest --with-coverage"
- PYTHON_VERSION=2.7 USE_CYTHON=True NOSE_ARGS="--with-doctest --with-coverage"
- PYTHON_VERSION=3.4 USE_H5PY=True
- PYTHON_VERSION=3.4 USE_CYTHON=True
- PYTHON_VERSION=3.5 USE_H5PY=True
- PYTHON_VERSION=3.5 USE_CYTHON=True
- PYTHON_VERSION=3.6 USE_H5PY=True
- PYTHON_VERSION=3.6 USE_CYTHON=True
before_install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=/home/travis/miniconda3/bin:$PATH
install:
- conda create --yes -n env_name python=$PYTHON_VERSION pip click numpy scipy nose pep8 flake8 coverage future six pandas
- 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
- if [ ${PYTHON_VERSION} = "2.7" ]; then conda install --yes -n env_name Sphinx=1.2.2; fi
- source activate env_name
- if [ ${PYTHON_VERSION} = "2.7" ]; then pip install pyqi; fi
- pip install coveralls
- pip install -e . --no-deps
script:
- nosetests ${NOSE_ARGS}
- flake8 biom setup.py
- biom show-install-info
- if [ ${PYTHON_VERSION} = "2.7" ]; then make -C doc html; fi
# 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}; done;
- pushd biom/assets
- if [ ${USE_H5PY} ]; then python exercise_api.py ../../examples/rich_sparse_otu_table_hdf5.biom sample; fi
- if [ ${USE_H5PY} ]; then python exercise_api.py ../../examples/rich_sparse_otu_table_hdf5.biom observation; fi
- if [ ${USE_H5PY} ]; then sh exercise_cli.sh; fi
- popd
after_success:
- coveralls