File tree 3 files changed +20
-3
lines changed 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 @@ -44,7 +44,7 @@ matrix:
44
44
env : BUILD_DOCS=true
45
45
46
46
install :
47
- - pip install -q --use-mirrors nose python-dateutil $NUMPY pep8 pyparsing pillow sphinx!=1.3.0
47
+ - pip install python-dateutil $NUMPY pep8 pyparsing pillow sphinx!=1.3.0 coveralls coverage
48
48
49
49
# We manually install humor sans using the package from Ubuntu 14.10. Unfortunatly humor sans is not
50
50
# availible in the Ubuntu version used by Travis but we can manually install the deb from a later
@@ -137,3 +137,4 @@ after_success:
137
137
fi
138
138
fi
139
139
fi
140
+ coveralls
Original file line number Diff line number Diff line change 19
19
import nose
20
20
from matplotlib .testing .noseclasses import KnownFailure
21
21
from matplotlib import default_test_modules
22
-
22
+ from nose . plugins . cover import Coverage
23
23
from matplotlib import font_manager
24
24
# Make sure the font caches are created before starting any possibly
25
25
# parallel tests
26
26
if font_manager ._fmcache is not None :
27
27
while not os .path .exists (font_manager ._fmcache ):
28
28
time .sleep (0.5 )
29
29
30
+ plugins = [KnownFailure , Coverage ]
31
+
30
32
plugins = [KnownFailure ]
33
+ env = {"NOSE_WITH_COVERAGE" : 1 ,
34
+ 'NOSE_COVER_PACKAGE' : 'matplotlib' ,
35
+ 'NOSE_COVER_HTML' : 1 }
31
36
32
37
# Nose doesn't automatically instantiate all of the plugins in the
33
38
# child processes, so we have to provide the multiprocess plugin with
@@ -45,7 +50,8 @@ def run():
45
50
faulthandler .enable ()
46
51
47
52
nose .main (addplugins = [x () for x in plugins ],
48
- defaultTest = default_test_modules )
53
+ defaultTest = default_test_modules ,
54
+ env = env )
49
55
50
56
if __name__ == '__main__' :
51
57
if '--no-pep8' in sys .argv :
You can’t perform that action at this time.
0 commit comments