Skip to content

Commit f48b943

Browse files
authored
Merge pull request #27 from matplotlib/enable-coveralls
Enable coverage testing
2 parents 256181e + b9d049c commit f48b943

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.travis.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ os:
1010
env:
1111
global:
1212
- SETUP_XVFB=True
13-
- CONDA_DEPENDENCIES="pytest matplotlib nose"
13+
- CONDA_DEPENDENCIES="pytest matplotlib nose coverage"
14+
- PIP_DEPENDENCIES="pytest-cov coveralls"
1415
matrix:
1516
- PYTHON_VERSION=2.6 MATPLOTLIB_VERSION=1.4 NUMPY_VERSION=1.9
1617
- PYTHON_VERSION=2.7 MATPLOTLIB_VERSION=1.4 NUMPY_VERSION=1.9
@@ -28,9 +29,12 @@ install:
2829
- git clone git://github.com/astropy/ci-helpers.git
2930
- source ci-helpers/travis/setup_conda_$TRAVIS_OS_NAME.sh
3031

31-
- python setup.py install
32+
# Need to use develop instead of install to make sure coverage works
33+
- python setup.py develop
3234

3335
script:
3436
- python -c 'import pytest_mpl.plugin'
35-
- cd tests
36-
- py.test --mpl
37+
- py.test --mpl --cov pytest_mpl tests
38+
39+
after_success:
40+
- coveralls

0 commit comments

Comments
 (0)