File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 - secure : RgJI7BBL8aX5FTOQe7xiXqWHMxWokd6GNUWp1NUV2mRLXPb9dI0RXqZt3UJwKTAzf1z/OtlHDmEkBoTVK81E9iUxK5npwyyjhJ8yTJmwfQtQF2n51Q1Ww9p+XSLORrOzZc7kAo6Kw6FIXN1pfctgYq2bQkrwJPRx/oPR8f6hcbY=
66 - secure : E7OCdqhZ+PlwJcn+Hd6ns9TDJgEUXiUNEI0wu7xjxB2vBRRIKtZMbuaZjd+iKDqCKuVOJKu0ClBUYxmgmpLicTwi34CfTUYt6D4uhrU+8hBBOn1iiK51cl/aBvlUUrqaRLVhukNEBGZcyqAjXSA/Qsnp2iELEmAfOUa92ZYo1sk=
77
8+ matrix :
9+ - TEST_ARGS=--no-pep8
10+
811before_script :
912 - gem install travis-artifacts
1013
@@ -16,6 +19,11 @@ python:
1619 - 3.3
1720 - 3.4
1821
22+ matrix :
23+ include :
24+ - python : 2.7
25+ env : TEST_ARGS=--pep8
26+
1927install :
2028 - pip install -q --use-mirrors nose python-dateutil numpy pep8 pyparsing pillow
2129 - sudo apt-get update && sudo apt-get -qq install inkscape libav-tools
@@ -31,7 +39,7 @@ script:
3139 # Generate the font caches in a single process before starting the
3240 # multiple processes
3341 - 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
3543
3644after_failure :
3745 - 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):
13841384 # a list.
13851385 multiprocess ._instantiate_plugins = [KnownFailure ]
13861386
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+ )
13901391 finally :
13911392 if old_backend .lower () != 'agg' :
13921393 use (old_backend )
Original file line number Diff line number Diff line change 1010# these options.
1111
1212import os
13+ import sys
1314import time
1415
1516import matplotlib
@@ -39,4 +40,11 @@ def run():
3940 defaultTest = default_test_modules )
4041
4142if __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+
4250 run ()
You can’t perform that action at this time.
0 commit comments