Skip to content

Commit d2736de

Browse files
authored
Revert "Backport #13205 on branch v3.0.x (Add xvfb service to travis) (#13216)"
This reverts commit 4a63ccb.
1 parent 4a63ccb commit d2736de

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.appveyor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ install:
6666
- activate test-environment
6767
- echo %PYTHON_VERSION% %TARGET_ARCH%
6868
# pytest-cov>=2.3.1 due to https://github.com/pytest-dev/pytest-cov/issues/124
69-
- pip install -q "pytest>=3.4,<4.0" "pytest-cov>=2.3.1" pytest-rerunfailures pytest-timeout pytest-xdist
69+
- pip install -q "pytest>=3.4" "pytest-cov>=2.3.1" pytest-rerunfailures pytest-timeout pytest-xdist
7070

7171
# Apply patch to `subprocess` on Python versions > 2 and < 3.6.3
7272
# https://github.com/matplotlib/matplotlib/issues/9176

.travis.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ language: python
33
dist: xenial
44
sudo: false
55

6-
services:
7-
- xvfb
8-
96
branches:
107
except:
118
- /^auto-backport-of-pr-\d*/
@@ -79,6 +76,8 @@ matrix:
7976
- RUN_FLAKE8=1
8077
- EXTRAREQS='-r requirements/testing/travis_flake8.txt'
8178
- python: 3.5
79+
dist: trusty
80+
# pytest-cov>=2.3.1 due to https://github.com/pytest-dev/pytest-cov/issues/124.
8281
env:
8382
- PINNEDVERS='-c requirements/testing/travis35.txt'
8483
- python: 3.6
@@ -157,6 +156,10 @@ install:
157156
python -mpip install -ve .
158157
159158
before_script: |
159+
if [[ $TRAVIS_OS_NAME != 'osx' ]]; then
160+
export DISPLAY=:99.0
161+
sh -e /etc/init.d/xvfb start
162+
fi
160163
if [[ $DELETE_FONT_CACHE == 1 ]]; then
161164
rm -rf ~/.cache/matplotlib
162165
fi

requirements/testing/travis_all.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pillow
88
pyparsing
99
# pytest-timeout master depends on pytest>=3.6. Testing with pytest 3.4 is
1010
# still supported; this is tested by the first travis python 3.5 build
11-
pytest>=3.6,<4
11+
pytest>=3.6
1212
pytest-cov
1313
pytest-faulthandler
1414
pytest-rerunfailures

0 commit comments

Comments
 (0)