Skip to content

Commit

Permalink
Merge pull request astropy#13 from astrofrog/coverage
Browse files Browse the repository at this point in the history
Report coverage results
  • Loading branch information
astrofrog committed Jan 29, 2018
2 parents 2d1c182 + a70bcc8 commit 3bd9589
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ sudo: false

env:
global:
- CONDA_DEPENDENCIES="pytest numpy astropy"
- CONDA_DEPENDENCIES="pytest pytest-cov numpy astropy"
- PIP_DEPENDENCIES="coveralls"
matrix:
- PYTHON_VERSION=2.7
- PYTHON_VERSION=3.5
Expand All @@ -13,9 +14,15 @@ env:
install:
- git clone git://github.com/astropy/ci-helpers.git
- source ci-helpers/travis/setup_conda_$TRAVIS_OS_NAME.sh
- python setup.py install

# Need to use develop instead of install to make sure coverage works
- python setup.py develop

script:
- python -c 'import pytest_arraydiff.plugin'
- pytest -vv --arraydiff --cov pytest_arraydiff tests
- pytest -vv --cov pytest_arraydiff --cov-append tests
- python setup.py check --restructuredtext
- cd tests
- py.test --arraydiff

after_success:
- coveralls

0 comments on commit 3bd9589

Please sign in to comment.