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

Skip to content

Commit 9b259b7

Browse files
authored
Merge pull request #13205 from dstansby/xvfb-travis
CI: Add xvfb service to travis
2 parents 99af9e3 + 06a479a commit 9b259b7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.travis.yml

Lines changed: 3 additions & 4 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*/
@@ -158,10 +161,6 @@ install:
158161
python -mpip install -ve .
159162
160163
before_script: |
161-
if [[ $TRAVIS_OS_NAME != 'osx' ]]; then
162-
export DISPLAY=:99.0
163-
sh -e /etc/init.d/xvfb start
164-
fi
165164
if [[ $DELETE_FONT_CACHE == 1 ]]; then
166165
rm -rf ~/.cache/matplotlib
167166
fi

0 commit comments

Comments
 (0)