File tree Expand file tree Collapse file tree 3 files changed +21
-4
lines changed Expand file tree Collapse file tree 3 files changed +21
-4
lines changed Original file line number Diff line number Diff line change 5
5
- secure : RgJI7BBL8aX5FTOQe7xiXqWHMxWokd6GNUWp1NUV2mRLXPb9dI0RXqZt3UJwKTAzf1z/OtlHDmEkBoTVK81E9iUxK5npwyyjhJ8yTJmwfQtQF2n51Q1Ww9p+XSLORrOzZc7kAo6Kw6FIXN1pfctgYq2bQkrwJPRx/oPR8f6hcbY=
6
6
- secure : E7OCdqhZ+PlwJcn+Hd6ns9TDJgEUXiUNEI0wu7xjxB2vBRRIKtZMbuaZjd+iKDqCKuVOJKu0ClBUYxmgmpLicTwi34CfTUYt6D4uhrU+8hBBOn1iiK51cl/aBvlUUrqaRLVhukNEBGZcyqAjXSA/Qsnp2iELEmAfOUa92ZYo1sk=
7
7
8
+ matrix :
9
+ - TEST_ARGS=--no-pep8
10
+
8
11
before_script :
9
12
- gem install travis-artifacts
10
13
@@ -16,6 +19,11 @@ python:
16
19
- 3.3
17
20
- 3.4
18
21
22
+ matrix :
23
+ include :
24
+ - python : 2.7
25
+ env : TEST_ARGS=--pep8
26
+
19
27
install :
20
28
- pip install -q --use-mirrors nose python-dateutil numpy pep8 pyparsing pillow
21
29
- sudo apt-get update && sudo apt-get -qq install inkscape libav-tools
@@ -31,7 +39,7 @@ script:
31
39
# Generate the font caches in a single process before starting the
32
40
# multiple processes
33
41
- python -c "from matplotlib import font_manager"
34
- - python ../matplotlib/tests.py -sv --processes=8 --process-timeout=300
42
+ - python ../matplotlib/tests.py -sv --processes=8 --process-timeout=300 $TEST_ARGS
35
43
36
44
after_failure :
37
45
- tar cjf result_images.tar.bz2 result_images
Original file line number Diff line number Diff line change @@ -1384,9 +1384,10 @@ def test(verbosity=1):
1384
1384
# a list.
1385
1385
multiprocess ._instantiate_plugins = [KnownFailure ]
1386
1386
1387
- success = nose .run ( defaultTest = default_test_modules ,
1388
- config = config ,
1389
- )
1387
+ success = nose .run (
1388
+ defaultTest = default_test_modules ,
1389
+ config = config ,
1390
+ )
1390
1391
finally :
1391
1392
if old_backend .lower () != 'agg' :
1392
1393
use (old_backend )
Original file line number Diff line number Diff line change 10
10
# these options.
11
11
12
12
import os
13
+ import sys
13
14
import time
14
15
15
16
import matplotlib
@@ -39,4 +40,11 @@ def run():
39
40
defaultTest = default_test_modules )
40
41
41
42
if __name__ == '__main__' :
43
+ if '--no-pep8' in sys .argv :
44
+ default_test_modules .remove ('matplotlib.tests.test_coding_standards' )
45
+ sys .argv .remove ('--no-pep8' )
46
+ elif '--pep8' in sys .argv :
47
+ default_test_modules = ['matplotlib.tests.test_coding_standards' ]
48
+ sys .argv .remove ('--pep8' )
49
+
42
50
run ()
You can’t perform that action at this time.
0 commit comments