Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c520c2c

Browse files
committed
Stop installing nose in CI.
1 parent 80281e9 commit c520c2c

File tree

2 files changed

+16
-21
lines changed

2 files changed

+16
-21
lines changed

.travis.yml

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ env:
4545
- NPROC=2
4646
- INSTALL_PEP8=
4747
- RUN_PEP8=
48-
- NOSE_ARGS="-n $NPROC"
4948
- PYTEST_ARGS="-ra --maxfail=1 --timeout=300 --durations=25 --cov-report= --cov=lib -n $NPROC"
5049
- PYTHON_ARGS=
5150
- DELETE_FONT_CACHE=
@@ -58,7 +57,7 @@ matrix:
5857
- python: 3.4
5958
env: PYTHON_ARGS=-OO
6059
- python: 3.5
61-
env: PANDAS=pandas NOSE_ARGS=--with-coverage DELETE_FONT_CACHE=1
60+
env: PANDAS=pandas DELETE_FONT_CACHE=1
6261
- python: 3.5
6362
env: BUILD_DOCS=true
6463
- python: 3.5
@@ -70,7 +69,7 @@ matrix:
7069
- os: osx
7170
osx_image: xcode7.3
7271
language: generic # https://github.com/travis-ci/travis-ci/issues/2312
73-
env: MOCK=mock NOSE_ARGS=
72+
env: MOCK=mock
7473
cache:
7574
# As for now travis caches only "$HOME/.cache/pip"
7675
# https://docs.travis-ci.com/user/caching/#pip-cache
@@ -117,9 +116,6 @@ install:
117116
pip install $PRE python-dateutil $NUMPY pyparsing!=2.1.6 $PANDAS cycler coveralls coverage $MOCK
118117
pip install $PRE -r doc-requirements.txt
119118
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
123119
# pytest-cov>=2.3.1 due to https://github.com/pytest-dev/pytest-cov/issues/124
124120
pip install $PRE pytest 'pytest-cov>=2.3.1' pytest-timeout pytest-xdist pytest-faulthandler $INSTALL_PEP8
125121
@@ -155,21 +151,20 @@ script:
155151
if [[ $DELETE_FONT_CACHE == 1 ]]; then
156152
rm -rf ~/.cache/matplotlib
157153
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
158161
if [[ $USE_PYTEST == false ]]; then
159-
echo The following args are passed to nose $NOSE_ARGS $RUN_PEP8
160162
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
161-
python tests.py $NOSE_ARGS $RUN_PEP8
163+
python tests.py $PYTEST_ARGS $RUN_PEP8
162164
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
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-
172-
echo The following args are passed to pytest $PYTEST_ARGS $RUN_PEP8
173168
py.test $PYTEST_ARGS $RUN_PEP8
174169
fi
175170
else
@@ -225,7 +220,7 @@ after_success:
225220
else
226221
echo "Will only deploy docs build from matplotlib master branch"
227222
fi
228-
if [[ $NOSE_ARGS =~ "--with-coverage" || $USE_PYTEST == true ]]; then
223+
if [[ $USE_PYTEST == true ]]; then
229224
coveralls
230225
bash <(curl -s https://codecov.io/bash)
231226
fi

appveyor.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,12 @@ install:
9191
- conda create -q -n test-environment python=%PYTHON_VERSION%
9292
pip setuptools numpy python-dateutil freetype=2.6 msinttypes "tk=8.5"
9393
pyparsing pytz tornado "libpng>=1.6.21,<1.7" "zlib=1.2" "cycler>=0.10"
94-
nose mock sphinx
94+
mock sphinx
9595
- activate test-environment
9696
- cmd: echo %PYTHON_VERSION% %TARGET_ARCH%
9797
- cmd: IF %PYTHON_VERSION% == 2.7 conda install -q functools32
9898
# pytest-cov>=2.3.1 due to https://github.com/pytest-dev/pytest-cov/issues/124
99-
- if x%USE_PYTEST% == xyes conda install -q pytest "pytest-cov>=2.3.1" pytest-timeout pytest-xdist
99+
- conda install -q pytest "pytest-cov>=2.3.1" pytest-timeout pytest-xdist
100100

101101
# Let the install prefer the static builds of the libs
102102
- set LIBRARY_LIB=%CONDA_PREFIX%\Library\lib
@@ -135,9 +135,9 @@ test_script:
135135
# Test import of tkagg backend
136136
- python -c "import matplotlib as m; m.use('tkagg'); import matplotlib.pyplot as plt; print(plt.get_backend())"
137137
# tests
138-
- if x%USE_PYTEST% == xyes echo The following args are passed to pytest %PYTEST_ARGS%
138+
- echo The following args are passed to pytest %PYTEST_ARGS%
139139
- if x%USE_PYTEST% == xyes py.test %PYTEST_ARGS%
140-
- if x%USE_PYTEST% == xno python tests.py
140+
- if x%USE_PYTEST% == xno python tests.py %PYTEST_ARGS%
141141
# Generate a html for visual tests
142142
- python visual_tests.py
143143

0 commit comments

Comments
 (0)