45
45
- NPROC=2
46
46
- INSTALL_PEP8=
47
47
- RUN_PEP8=
48
- - NOSE_ARGS="-n $NPROC"
49
48
- PYTEST_ARGS="-ra --maxfail=1 --timeout=300 --durations=25 --cov-report= --cov=lib -n $NPROC"
50
49
- PYTHON_ARGS=
51
50
- DELETE_FONT_CACHE=
@@ -58,7 +57,7 @@ matrix:
58
57
- python : 3.4
59
58
env : PYTHON_ARGS=-OO
60
59
- python : 3.5
61
- env : PANDAS=pandas NOSE_ARGS=--with-coverage DELETE_FONT_CACHE=1
60
+ env : PANDAS=pandas DELETE_FONT_CACHE=1
62
61
- python : 3.5
63
62
env : BUILD_DOCS=true
64
63
- python : 3.5
@@ -70,7 +69,7 @@ matrix:
70
69
- os : osx
71
70
osx_image : xcode7.3
72
71
language : generic # https://github.com/travis-ci/travis-ci/issues/2312
73
- env : MOCK=mock NOSE_ARGS=
72
+ env : MOCK=mock
74
73
cache :
75
74
# As for now travis caches only "$HOME/.cache/pip"
76
75
# https://docs.travis-ci.com/user/caching/#pip-cache
@@ -117,9 +116,6 @@ install:
117
116
pip install $PRE python-dateutil $NUMPY pyparsing!=2.1.6 $PANDAS cycler coveralls coverage $MOCK
118
117
pip install $PRE -r doc-requirements.txt
119
118
120
- # Install nose from a build which has partial
121
- # support for python36 and suport for coverage output suppressing
122
- pip install git+https://github.com/jenshnielsen/nose.git@matplotlibnose
123
119
# pytest-cov>=2.3.1 due to https://github.com/pytest-dev/pytest-cov/issues/124
124
120
pip install $PRE pytest 'pytest-cov>=2.3.1' pytest-timeout pytest-xdist pytest-faulthandler $INSTALL_PEP8
125
121
@@ -155,21 +151,20 @@ script:
155
151
if [[ $DELETE_FONT_CACHE == 1 ]]; then
156
152
rm -rf ~/.cache/matplotlib
157
153
fi
154
+ # Workaround for pytest-xdist flaky collection order
155
+ # https://github.com/pytest-dev/pytest/issues/920
156
+ # https://github.com/pytest-dev/pytest/issues/1075
157
+ export PYTHONHASHSEED=$(shuf -i 1-4294967295 -n 1)
158
+ echo PYTHONHASHSEED=$PYTHONHASHSEED
159
+
160
+ echo The following args are passed to pytest $PYTEST_ARGS $RUN_PEP8
158
161
if [[ $USE_PYTEST == false ]]; then
159
- echo The following args are passed to nose $NOSE_ARGS $RUN_PEP8
160
162
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
161
- python tests.py $NOSE_ARGS $RUN_PEP8
163
+ python tests.py $PYTEST_ARGS $RUN_PEP8
162
164
else
163
- gdb -return-child-result -batch -ex r -ex bt --args python $PYTHON_ARGS tests.py $NOSE_ARGS $RUN_PEP8
165
+ gdb -return-child-result -batch -ex r -ex bt --args python $PYTHON_ARGS tests.py $PYTEST_ARGS $RUN_PEP8
164
166
fi
165
167
else
166
- # Workaround for pytest-xdist flaky colletion order
167
- # https://github.com/pytest-dev/pytest/issues/920
168
- # https://github.com/pytest-dev/pytest/issues/1075
169
- export PYTHONHASHSEED=$(shuf -i 1-4294967295 -n 1)
170
- echo PYTHONHASHSEED=$PYTHONHASHSEED
171
-
172
- echo The following args are passed to pytest $PYTEST_ARGS $RUN_PEP8
173
168
py.test $PYTEST_ARGS $RUN_PEP8
174
169
fi
175
170
else
@@ -225,7 +220,7 @@ after_success:
225
220
else
226
221
echo "Will only deploy docs build from matplotlib master branch"
227
222
fi
228
- if [[ $NOSE_ARGS =~ "--with-coverage" || $ USE_PYTEST == true ]]; then
223
+ if [[ $USE_PYTEST == true ]]; then
229
224
coveralls
230
225
bash <(curl -s https://codecov.io/bash)
231
226
fi
0 commit comments