8000 On 2.7, run tests on oldest documented supported deps. · matplotlib/matplotlib@23e24d3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 23e24d3

Browse files
committed
On 2.7, run tests on oldest documented supported deps.
... to make sure that they are indeed supported.
1 parent cc7de70 commit 23e24d3

File tree

2 files changed

+36
-19
lines changed

2 files changed

+36
-19
lines changed

.travis.yml

Lines changed: 34 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -36,25 +36,43 @@ env:
3636
- secure: RgJI7BBL8aX5FTOQe7xiXqWHMxWokd6GNUWp1NUV2mRLXPb9dI0RXqZt3UJwKTAzf1z/OtlHDmEkBoTVK81E9iUxK5npwyyjhJ8yTJmwfQtQF2n51Q1Ww9p+XSLORrOzZc7kAo6Kw6FIXN1pfctgYq2bQkrwJPRx/oPR8f6hcbY=
3737
- secure: E7OCdqhZ+PlwJcn+Hd6ns9TDJgEUXiUNEI0wu7xjxB2vBRRIKtZMbuaZjd+iKDqCKuVOJKu0ClBUYxmgmpLicTwi34CfTUYt6D4uhrU+8hBBOn1iiK51cl/aBvlUUrqaRLVhukNEBGZcyqAjXSA/Qsnp2iELEmAfOUa92ZYo1sk=
3838
- secure: "dfjNqGKzQG5bu3FnDNwLG8H/C4QoieFo4PfFmZPdM2RY7WIzukwKFNT6kiDfOrpwt+2bR7FhzjOGlDECGtlGOtYPN8XuXGjhcP4a4IfakdbDfF+D3NPIpf5VlE6776k0VpvcZBTMYJKNFIMc7QPkOwjvNJ2aXyfe3hBuGlKJzQU="
39+
- CYCLER=cycler
40+
- DATEUTIL=python-dateutil
41+
- MOCK=
42+
- NOSE=
3943
- NUMPY=numpy
40-
- OPENBLAS_NUM_THREADS=1
4144
- PANDAS=
45+
- PYPARSING=pyparsing
46+
- PYTEST=pytest
47+
- PYTEST_COV=pytest-cov
48+
- PYTEST_PEP8=
49+
- SPHINX=sphinx
50+
- OPENBLAS_NUM_THREADS=1
4251
- NPROC=2
43-
- INSTALL_PEP8=
4452
- RUN_PEP8=
45-
- NOSE=
4653
- PYTEST_ARGS="-rawR --maxfail=50 --timeout=300 --durations=25 --cov-report= --cov=lib -n $NPROC"
4754
- PYTHON_ARGS=
4855
- DELETE_FONT_CACHE=
4956

5057
matrix:
5158
include:
5259
- python: 2.7
53-
env: MOCK=mock NUMPY=numpy==1.7.1 PANDAS=pandas NOSE=nose
60+
# pytest-cov>=2.3.1 due to https://github.com/pytest-dev/pytest-cov/issues/124.
61+
env:
62+
- CYCLER=cycler==0.10
63+
- DATEUTIL=python-dateutil==2.0
64+
- MOCK=mock
65+
- NOSE=nose
66+
- NUMPY=numpy==1.7.1
67+
- PANDAS=pandas
68+
- PYPARSING=pyparsing==2.0.1
69+
- PYTEST=pytest==3.1.0
70+
- PYTEST_COV=pytest-cov==2.3.1
71+
- SPHINX=sphinx==1.3
5472
- python: 3.4
5573
env: PYTHON_ARGS=-OO
5674
- python: 3.6
57-
env: DELETE_FONT_CACHE=1 INSTALL_PEP8=pytest-pep8 RUN_PEP8=--pep8 PANDAS=pandas
75+
env: DELETE_FONT_CACHE=1 PANDAS=pandas PYTEST_PEP8=pytest-pep8 RUN_PEP8=--pep8
5876
- python: "nightly"
5977
env: PRE=--pre
6078
- os: osx
@@ -101,19 +119,19 @@ install:
101119
# Upgrade pip and setuptools and wheel to get as clean an install as possible
102120
pip install --upgrade pip setuptools wheel
103121
- |
104-
# Install dependencies from pypi
122+
# Install dependencies from PyPI
105123
pip install --upgrade $PRE \
124+
codecov \
125+
coverage \
126+
$CYCLER \
106127
$MOCK \
107128
$NOSE \
108129
$NUMPY \
109130
$PANDAS \
110-
codecov \
111-
coverage \
112-
cycler \
113131
pillow \
114-
pyparsing!=2.1.6 \
115-
python-dateutil \
116-
sphinx
132+
$PYPARSING \
133+
$DATEUTIL \
134+
$SPHINX
117135
# GUI toolkits are pip-installable only for some versions of Python so
118136
# don't fail if we can't install them. Make it easier to check whether the
119137
# install was successful by trying to import the toolkit (sometimes, the
@@ -130,15 +148,14 @@ install:
130148
echo 'wxPython is available' ||
131149
echo 'wxPython is not available'
132150
133-
# pytest-cov>=2.3.1 due to https://github.com/pytest-dev/pytest-cov/issues/124
134151
pip install $PRE \
135-
pytest \
136-
pytest-cov>=2.3.1 \
152+
$PYTEST \
153+
$PYTEST_COV \
137154
pytest-faulthandler \
155+
$PYTEST_PEP8 \
138156
pytest-rerunfailures \
139157
pytest-timeout \
140-
pytest-xdist \
141-
$INSTALL_PEP8
158+
pytest-xdist
142159
143160
# Use the special local version of freetype for testing
144161
cp ci/travis/setup.cfg .

doc/devel/testing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ Requirements
2222

2323
The following software is required to run the tests:
2424

25-
- pytest_, version 3.0.0 or later
25+
- pytest_ (>=3.0.0)
2626
- mock_, when running Python versions < 3.3
2727
- Ghostscript_ (to render PDF files)
2828
- Inkscape_ (to render SVG files)
2929

3030
Optionally you can install:
3131

32-
- pytest-cov_ to collect coverage information
32+
- pytest-cov_ (>=2.3.1) to collect coverage information
3333
- pytest-pep8_ to test coding standards
3434
- pytest-timeout_ to limit runtime in case of stuck tests
3535
- pytest-xdist_ to run tests in parallel

0 commit comments

Comments
 (0)
0