Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3e9bcd4

Browse files
tacaswelljenshnielsen
authored andcommitted
TST : enable coveralls
- also update nose
1 parent d771fa7 commit 3e9bcd4

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

.coveragerc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[run]
2+
source=matplotlib
3+
[report]
4+
omit =
5+
*/python?.?/*
6+
*/site-packages/nose/*
7+
*test*
8+
9+
exclude_lines =
10+
raise NotImplemented

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ install:
6767
pip install $PRE python-dateutil $NUMPY pyparsing!=2.0.4 pillow sphinx!=1.3.0;
6868
fi
6969
# Always install from pypi
70-
- pip install $PRE pep8 cycler
70+
- pip install $PRE pep8 cycler coveralls coverage
7171
- 'pip install https://github.com/tacaswell/nose/zipball/mnt_py36_compat#egg=nose'
7272

7373
# We manually install humor sans using the package from Ubuntu 14.10. Unfortunatly humor sans is not
@@ -161,3 +161,4 @@ after_success:
161161
fi
162162
fi
163163
fi
164+
coveralls

tests.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
def run(extra_args):
2424
from nose.plugins import multiprocess
2525

26+
env = {"NOSE_WITH_COVERAGE": 1,
27+
'NOSE_COVER_PACKAGE': 'matplotlib',
28+
'NOSE_COVER_HTML': 1}
29+
2630
matplotlib._init_tests()
2731

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

3438
nose.main(addplugins=[x() for x in plugins],
3539
defaultTest=default_test_modules,
36-
argv=sys.argv + extra_args)
37-
40+
argv=sys.argv + extra_args,
41+
env=env)
3842

3943
if __name__ == '__main__':
4044
extra_args = []

0 commit comments

Comments
 (0)