Skip to content

Commit

Permalink
update travis xvfb syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarbranson committed Aug 11, 2019
1 parent f01be39 commit c930e63
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ install:
script:
- pytest -s

services:
- xvfb

before_install:
# Tricks to avoid matplotlib error about X11:
# 'no display name and no $DISPLAY environment variable'
# http://docs.travis-ci.com/user/gui-and-headless-browsers/#Starting-a-Web-Server
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"

- "export DISPLAY=:99.0"

0 comments on commit c930e63

Please sign in to comment.