Skip to content

Commit

Permalink
TST : enable coveralls
Browse files Browse the repository at this point in the history
 - also update nose
  • Loading branch information
tacaswell authored and jenshnielsen committed Nov 15, 2015
1 parent 8236ed4 commit e5cf550
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[run]
source=matplotlib
[report]
omit =
*/python?.?/*
*/site-packages/nose/*
*test*

exclude_lines =
raise NotImplemented
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ install:
pip install $PRE python-dateutil $NUMPY pyparsing!=2.0.4 pillow sphinx!=1.3.0;
fi
# Always install from pypi
- pip install $PRE pep8 cycler
- pip install $PRE pep8 cycler coveralls coverage
- 'pip install https://github.com/tacaswell/nose/zipball/mnt_py36_compat#egg=nose'

# We manually install humor sans using the package from Ubuntu 14.10. Unfortunatly humor sans is not
Expand Down Expand Up @@ -165,3 +165,4 @@ after_success:
fi
fi
fi
coveralls
8 changes: 6 additions & 2 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
def run(extra_args):
from nose.plugins import multiprocess

env = {"NOSE_WITH_COVERAGE": 1,
'NOSE_COVER_PACKAGE': 'matplotlib',
'NOSE_COVER_HTML': 1}

matplotlib._init_tests()

# Nose doesn't automatically instantiate all of the plugins in the
Expand All @@ -33,8 +37,8 @@ def run(extra_args):

nose.main(addplugins=[x() for x in plugins],
defaultTest=default_test_modules,
argv=sys.argv + extra_args)

argv=sys.argv + extra_args,
env=env)

if __name__ == '__main__':
extra_args = []
Expand Down

0 comments on commit e5cf550

Please sign in to comment.