Skip to content

Commit

Permalink
TST: adds coverage testing and reporting to Travis CI (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregcaporaso authored and jairideout committed Feb 28, 2017
1 parent 9ff5adc commit 65fca9d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
10 changes: 10 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[run]
branch = True
omit =
*/tests*
*/__init__.py

[report]
omit =
*/tests*
*/__init__.py
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@ install:
# we can let conda do dependency resolution when there are conda packages for
# the various QIIME 2 projects. Until then, avoid installing heavyweight
# dependencies via pip.
- conda create --yes -n test-env -c biocore python=$PYTHON_VERSION scikit-bio jupyter click nose
- conda create --yes -n test-env -c biocore python=$PYTHON_VERSION scikit-bio jupyter click pytest pytest-cov
- source activate test-env
- pip install https://github.com/qiime2/qiime2/archive/master.zip
- pip install flake8
- pip install flake8 coveralls
- pip install .
- 'echo "backend: Agg" > matplotlibrc'
- git clone https://github.com/qiime2/q2lint
script:
- nosetests
- py.test --cov=q2_types
- flake8
- python q2lint/q2lint.py
after_success:
- coveralls
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# q2-types

Definitions of common QIIME 2 types.
[![Build Status](https://travis-ci.org/qiime2/q2-types.svg?branch=master)](https://travis-ci.org/qiime2/q2-types)
[![Coverage Status](https://coveralls.io/repos/github/qiime2/q2-types/badge.svg?branch=master)](https://coveralls.io/github/qiime2/q2-types?branch=master)

This is a QIIME 2 plugin. For details on QIIME 2, see https://qiime2.org.

0 comments on commit 65fca9d

Please sign in to comment.