Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e5cf550

Browse filesBrowse files
tacaswelljenshnielsen
authored andcommitted
TST : enable coveralls
- also update nose
1 parent 8236ed4 commit e5cf550
Copy full SHA for e5cf550

File tree

Expand file treeCollapse file tree

3 files changed

+18
-3
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+18
-3
lines changed

‎.coveragerc

Copy file name to clipboard
+10Lines 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

Copy file name to clipboardExpand all lines: .travis.yml
+2-1Lines 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
@@ -165,3 +165,4 @@ after_success:
165165
fi
166166
fi
167167
fi
168+
coveralls

‎tests.py

Copy file name to clipboardExpand all lines: tests.py
+6-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.