43
43
- OPENBLAS_NUM_THREADS=1
44
44
- PANDAS=
45
45
- NPROC=2
46
- - TEST_ARGS=--no-pep8
46
+ - INSTALL_PEP8=
47
+ - RUN_PEP8=
47
48
- NOSE_ARGS="-j $NPROC"
48
49
- PYTEST_ARGS="-ra --maxfail=1 --timeout=300 --durations=25 --cov-report= --cov=lib -n $NPROC"
49
50
- PYTHON_ARGS=
@@ -61,9 +62,9 @@ matrix:
61
62
- python : 3.5
62
63
env : BUILD_DOCS=true
63
64
- python : 3.5
64
- env : USE_PYTEST=true PANDAS=pandas DELETE_FONT_CACHE=1 TEST_ARGS=
65
+ env : USE_PYTEST=true PANDAS=pandas DELETE_FONT_CACHE=1
65
66
- python : 3.6
66
- env : USE_PYTEST=true DELETE_FONT_CACHE=1 TEST_ARGS=
67
+ env : USE_PYTEST=true DELETE_FONT_CACHE=1 INSTALL_PEP8=pytest-pep8 RUN_PEP8=--pep8
67
68
- python : " nightly"
68
69
env : PRE=--pre
69
70
- os : osx
@@ -113,14 +114,14 @@ install:
113
114
pip install --upgrade setuptools
114
115
- |
115
116
# Install dependencies from pypi
116
- pip install $PRE python-dateutil $NUMPY pyparsing!=2.1.6 $PANDAS pep8 cycler coveralls coverage $MOCK
117
+ pip install $PRE python-dateutil $NUMPY pyparsing!=2.1.6 $PANDAS cycler coveralls coverage $MOCK
117
118
pip install $PRE -r doc-requirements.txt
118
119
119
120
# Install nose from a build which has partial
120
121
# support for python36 and suport for coverage output suppressing
121
122
pip install git+https://github.com/jenshnielsen/nose.git@matplotlibnose
122
123
# pytest-cov>=2.3.1 due to https://github.com/pytest-dev/pytest-cov/issues/124
123
- pip install $PRE pytest 'pytest-cov>=2.3.1' pytest-timeout pytest-xdist pytest-faulthandler
124
+ pip install $PRE pytest 'pytest-cov>=2.3.1' pytest-timeout pytest-xdist pytest-faulthandler $INSTALL_PEP8
124
125
125
126
# We manually install humor sans using the package from Ubuntu 14.10. Unfortunatly humor sans is not
126
127
# availible in the Ubuntu version used by Travis but we can manually install the deb from a later
@@ -154,13 +155,12 @@ script:
154
155
if [[ $DELETE_FONT_CACHE == 1 ]]; then
155
156
rm -rf ~/.cache/matplotlib
156
157
fi
157
- export MPL_REPO_DIR=$PWD # needed for pep8-conformance test of the examples
158
158
if [[ $USE_PYTEST == false ]]; then
159
- echo The following args are passed to nose $NOSE_ARGS
159
+ echo The following args are passed to nose $NOSE_ARGS $RUN_PEP8
160
160
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
161
- python tests.py $NOSE_ARGS $TEST_ARGS
161
+ python tests.py $NOSE_ARGS $RUN_PEP8
162
162
else
163
- gdb -return-child-result -batch -ex r -ex bt --args python $PYTHON_ARGS tests.py $NOSE_ARGS $TEST_ARGS
163
+ gdb -return-child-result -batch -ex r -ex bt --args python $PYTHON_ARGS tests.py $NOSE_ARGS $RUN_PEP8
164
164
fi
165
165
else
166
166
# Workaround for pytest-xdist flaky colletion order
@@ -169,8 +169,8 @@ script:
169
169
export PYTHONHASHSEED=$(shuf -i 1-4294967295 -n 1)
170
170
echo PYTHONHASHSEED=$PYTHONHASHSEED
171
171
172
- echo The following args are passed to pytest $PYTEST_ARGS
173
- py.test $PYTEST_ARGS $TEST_ARGS
172
+ echo The following args are passed to pytest $PYTEST_ARGS $RUN_PEP8
173
+ py.test $PYTEST_ARGS $RUN_PEP8
174
174
fi
175
175
else
176
176
cd doc
0 commit comments