Skip to content

Commit ae56447

Browse files
dstansbyNelleV
authored andcommitted
Add xvfb service to travis
1 parent 73a7c0c commit ae56447

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.travis.yml

+3-4
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*/
@@ -156,10 +159,6 @@ install:
156159
python -mpip install -ve .
157160
158161
before_script: |
159-
if [[ $TRAVIS_OS_NAME != 'osx' ]]; then
160-
export DISPLAY=:99.0
161-
sh -e /etc/init.d/xvfb start
162-
fi
163162
if [[ $DELETE_FONT_CACHE == 1 ]]; then
164163
rm -rf ~/.cache/matplotlib
165164
fi

0 commit comments

Comments
 (0)