-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:biocore/biom-format into upstream…
…-update
- Loading branch information
Showing
144 changed files
with
2,611 additions
and
1,568 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,33 @@ | ||
# 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 | ||
- PYTHON_VERSION=2.7 WITH_DOCTEST=False USE_CYTHON=True | ||
- PYTHON_VERSION=3.5 WITH_DOCTEST=True USE_CYTHON=True | ||
- PYTHON_VERSION=3.6 WITH_DOCTEST=True USE_CYTHON=True | ||
- PYTHON_VERSION=3.7 WITH_DOCTEST=True 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 | ||
- conda create --yes -n env_name python=$PYTHON_VERSION pip click numpy scipy pep8 flake8 coverage future six "pandas>=0.20.0" nose h5py>=2.2.0 cython | ||
- rm biom/*.c | ||
- source activate env_name | ||
- if [ ${PYTHON_VERSION} = "2.7" ]; then pip install pyqi; fi | ||
- if [ ${PYTHON_VERSION} = "2.7" ]; then conda install --yes Sphinx=1.2.2; fi | ||
- pip install coveralls | ||
- pip install -e . --no-deps | ||
script: | ||
- nosetests ${NOSE_ARGS} | ||
- flake8 biom setup.py | ||
- make test | ||
- 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 | ||
- for table in examples/*hdf5.biom; do echo ${table}; biom validate-table -i ${table}; done | ||
# 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 | ||
- python biom/assets/exercise_api.py examples/rich_sparse_otu_table_hdf5.biom sample | ||
- python biom/assets/exercise_api.py examples/rich_sparse_otu_table_hdf5.biom observation | ||
- sh biom/assets/exercise_cli.sh | ||
after_success: | ||
- coveralls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# ---------------------------------------------------------------------------- | ||
# Copyright (c) 2013--, biom-format development team. | ||
# | ||
# Distributed under the terms of the Modified BSD License. | ||
# | ||
# The full license is in the file COPYING.txt, distributed with this software. | ||
# ---------------------------------------------------------------------------- | ||
|
||
ifeq ($(WITH_DOCTEST), TRUE) | ||
TEST_COMMAND = python setup.py test -a --doctest-modules --doctest-glob='*.pyx' | ||
else | ||
TEST_COMMAND = python setup.py test | ||
endif | ||
|
||
test: | ||
$(TEST_COMMAND) | ||
flake8 biom setup.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.