File tree 3 files changed +12
-9
lines changed
3 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 29
29
- PANDAS=
30
30
- NPROC=2
31
31
- TEST_ARGS=--no-pep8
32
+ - NOSE_ARGS="--processes=$NPROC --process-timeout=300"
32
33
33
34
language : python
34
35
@@ -38,7 +39,7 @@ matrix:
38
39
env : MOCK=mock NUMPY=numpy==1.6
39
40
- python : 3.4
40
41
- python : 3.5
41
- env : PANDAS=pandas
42
+ env : PANDAS=pandas NOSE_ARGS=--with-coverage
42
43
- python : 3.5
43
44
env : TEST_ARGS=--pep8
44
45
- python : 2.7
@@ -102,7 +103,7 @@ script:
102
103
- |
103
104
if [[ $BUILD_DOCS == false ]]; then
104
105
export MPL_REPO_DIR=$PWD # needed for pep8-conformance test of the examples
105
- gdb -return-child-result -batch -ex r -ex bt --args python tests.py --processes=$NPROC --process-timeout=300 $TEST_ARGS
106
+ gdb -return-child-result -batch -ex r -ex bt --args python tests.py $NOSE_ARGS $TEST_ARGS
106
107
else
107
108
cd doc
108
109
python make.py html --small --warningsaserrors
@@ -163,8 +164,6 @@ after_success:
163
164
fi
164
165
fi
165
166
fi
166
- if [[ $BUILD_DOCS == false && $TEST_ARGS != "--pep8" ]]; then
167
- # account for us running the test out-of-repo and coveralls expects in-repo
168
- # tests
167
+ if [[ $NOSE_ARGS="--with-coverage" ]]; then
169
168
coveralls
170
169
fi
Original file line number Diff line number Diff line change @@ -1529,6 +1529,13 @@ def _get_extra_test_plugins():
1529
1529
return [KnownFailure , attrib .Plugin ]
1530
1530
1531
1531
1532
+ def _get_nose_env ():
1533
+ env = {'NOSE_COVER_PACKAGE' : 'matplotlib' ,
1534
+ 'NOSE_COVER_HTML' : 1 ,
1535
+ 'NOSE_COVER_NO_PRINT' : 1 }
1536
+ return env
1537
+
1538
+
1532
1539
def test (verbosity = 1 ):
1533
1540
"""run the matplotlib test suite"""
1534
1541
_init_tests ()
Original file line number Diff line number Diff line change 23
23
def run (extra_args ):
24
24
from nose .plugins import multiprocess
25
25
26
- env = {"NOSE_WITH_COVERAGE" : 1 ,
27
- 'NOSE_COVER_PACKAGE' : 'matplotlib' ,
28
- 'NOSE_COVER_HTML' : 1 ,
29
- 'NOSE_COVER_NO_PRINT' : 1 }
26
+ env = matplotlib ._get_nose_env ()
30
27
31
28
matplotlib ._init_tests ()
32
29
You can’t perform that action at this time.
0 commit comments