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

Skip to content

Commit d237b8d

Browse files
committed
TST : enable coveralls
1 parent 3afb042 commit d237b8d

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
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
@@ -24,7 +24,7 @@ matrix:
2424
env: BUILD_DOCS=true
2525

2626
install:
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

tests.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
time.sleep(0.5)
2929

3030
plugins = [KnownFailure]
31+
env = {"NOSE_WITH_COVERAGE": 1,
32+
'NOSE_COVER_PACKAGE': 'matplotlib',
33+
'NOSE_COVER_HTML': 1}
3134

3235
# Nose doesn't automatically instantiate all of the plugins in the
3336
# child processes, so we have to provide the multiprocess plugin with
@@ -45,7 +48,8 @@ def run():
4548
faulthandler.enable()
4649

4750
nose.main(addplugins=[x() for x in plugins],
48-
defaultTest=default_test_modules)
51+
defaultTest=default_test_modules,
52+
env=env)
4953

5054
if __name__ == '__main__':
5155
if '--no-pep8' in sys.argv:

0 commit comments

Comments
 (0)