4444 -PANDAS=
4545 -NPROC=2
4646 -TEST_ARGS=--no-pep8
47- -NOSE_ARGS="-j $NPROC"
4847 -PYTEST_ARGS="-ra --maxfail=1 --timeout=300 --durations=25 --cov-report= --cov=lib -n $NPROC"
4948 -PYTHON_ARGS=
5049 -DELETE_FONT_CACHE=
@@ -57,7 +56,7 @@ matrix:
5756 -python :3.4
5857env :PYTHON_ARGS=-OO
5958 -python :3.5
60- env :PANDAS=pandasNOSE_ARGS=--with-coverage DELETE_FONT_CACHE=1
59+ env :PANDAS=pandas DELETE_FONT_CACHE=1
6160 -python :3.5
6261env :BUILD_DOCS=true
6362 -python :3.5
@@ -69,7 +68,7 @@ matrix:
6968 -os :osx
7069osx_image :xcode7.3
7170language :generic # https://github.com/travis-ci/travis-ci/issues/2312
72- env :MOCK=mock NOSE_ARGS=
71+ env :MOCK=mock
7372cache :
7473# As for now travis caches only "$HOME/.cache/pip"
7574# https://docs.travis-ci.com/user/caching/#pip-cache
@@ -116,9 +115,6 @@ install:
116115 pip install $PRE python-dateutil $NUMPY pyparsing!=2.1.6 $PANDAS pep8 cycler coveralls coverage $MOCK
117116 pip install $PRE -r doc-requirements.txt
118117
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
122118 # pytest-cov>=2.3.1 due to https://github.com/pytest-dev/pytest-cov/issues/124
123119 pip install $PRE pytest 'pytest-cov>=2.3.1' pytest-timeout pytest-xdist pytest-faulthandler
124120
@@ -155,20 +151,20 @@ script:
155151 rm -rf ~/.cache/matplotlib
156152 fi
157153 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+
158160 if [[ $USE_PYTEST == false ]]; then
159- echo The following args are passed tonose $NOSE_ARGS
161+ echo The following args are passed topytest $PYTEST_ARGS
160162 if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
161- python tests.py $NOSE_ARGS $TEST_ARGS
163+ python tests.py $PYTEST_ARGS $TEST_ARGS
162164 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
164166 fi
165167 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-
172168 echo The following args are passed to pytest $PYTEST_ARGS
173169 py.test $PYTEST_ARGS $TEST_ARGS
174170 fi
@@ -225,7 +221,7 @@ after_success:
225221 else
226222 echo "Will only deploy docs build from matplotlib master branch"
227223 fi
228- if [[ $NOSE_ARGS =~ "--with-coverage" || $ USE_PYTEST == true ]]; then
224+ if [[ $USE_PYTEST == true ]]; then
229225 coveralls
230226 bash <(curl -s https://codecov.io/bash)
231227 fi