File tree Expand file tree Collapse file tree 3 files changed +20
-3
lines changed
Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Original file line number Diff line number Diff line change 1+ [run]
2+ source =matplotlib
3+ [report]
4+ omit =
5+ */python?.?/*
6+ */site-packages/nose/*
7+ *test*
8+
9+ exclude_lines =
10+ raise NotImplemented
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ matrix:
2424 env : BUILD_DOCS=true
2525
2626install :
27- - pip install -q --use-mirrors nose python-dateutil $NUMPY pep8 pyparsing pillow sphinx!=1.3.0
27+ - pip install python-dateutil $NUMPY pep8 pyparsing pillow sphinx!=1.3.0 coveralls coverage
2828 - sudo apt-get update && sudo apt-get -qq install inkscape libav-tools gdb mencoder
2929 # We use --no-install-recommends to avoid pulling in additional large latex docs that we don't need
3030
@@ -119,3 +119,4 @@ after_success:
119119 fi
120120 fi
121121 fi
122+ coveralls
Original file line number Diff line number Diff line change 1919import nose
2020from matplotlib .testing .noseclasses import KnownFailure
2121from matplotlib import default_test_modules
22-
22+ from nose . plugins . cover import Coverage
2323from matplotlib import font_manager
2424# Make sure the font caches are created before starting any possibly
2525# parallel tests
2626if font_manager ._fmcache is not None :
2727 while not os .path .exists (font_manager ._fmcache ):
2828 time .sleep (0.5 )
2929
30+ plugins = [KnownFailure , Coverage ]
31+
3032plugins = [KnownFailure ]
33+ env = {"NOSE_WITH_COVERAGE" : 1 ,
34+ 'NOSE_COVER_PACKAGE' : 'matplotlib' ,
35+ 'NOSE_COVER_HTML' : 1 }
3136
3237# Nose doesn't automatically instantiate all of the plugins in the
3338# child processes, so we have to provide the multiprocess plugin with
@@ -45,7 +50,8 @@ def run():
4550 faulthandler .enable ()
4651
4752 nose .main (addplugins = [x () for x in plugins ],
48- defaultTest = default_test_modules )
53+ defaultTest = default_test_modules ,
54+ env = env )
4955
5056if __name__ == '__main__' :
5157 if '--no-pep8' in sys .argv :
You can’t perform that action at this time.
0 commit comments