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