Skip to content

Commit 4a63ccb

Browse files
NelleVtimhoffm
authored andcommitted
Backport #13205 on branch v3.0.x (Add xvfb service to travis) (#13216)
* Add xvfb service to travis * TST downgrading pytest * CI: do not pull py35 test run back to trusty This is to make sure we have the xvfb as a service
1 parent 73a7c0c commit 4a63ccb

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

.appveyor.yml

Lines changed: 1 addition & 1 deletion
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" "pytest-cov>=2.3.1" pytest-rerunfailures pytest-timeout pytest-xdist
69+
- pip install -q "pytest>=3.4,<4.0" "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

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

6+
services:
7+
- xvfb
8+
69
branches:
710
except:
811
- /^auto-backport-of-pr-\d*/
@@ -76,8 +79,6 @@ matrix:
7679
- RUN_FLAKE8=1
7780
- EXTRAREQS='-r requirements/testing/travis_flake8.txt'
7881
- python: 3.5
79-
dist: trusty
80-
# pytest-cov>=2.3.1 due to https://github.com/pytest-dev/pytest-cov/issues/124.
8182
env:
8283
- PINNEDVERS='-c requirements/testing/travis35.txt'
8384
- python: 3.6
@@ -156,10 +157,6 @@ install:
156157
python -mpip install -ve .
157158
158159
before_script: |
159-
if [[ $TRAVIS_OS_NAME != 'osx' ]]; then
160-
export DISPLAY=:99.0
161-
sh -e /etc/init.d/xvfb start
162-
fi
163160
if [[ $DELETE_FONT_CACHE == 1 ]]; then
164161
rm -rf ~/.cache/matplotlib
165162
fi

requirements/testing/travis_all.txt

Lines changed: 1 addition & 1 deletion
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
11+
pytest>=3.6,<4
1212
pytest-cov
1313
pytest-faulthandler
1414
pytest-rerunfailures

0 commit comments

Comments
 (0)