Skip to content

Commit

Permalink
Use xvfb service on Xenial
Browse files Browse the repository at this point in the history
  • Loading branch information
richelbilderbeek committed Apr 9, 2019
1 parent d861a8e commit d039d46
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .travis.yml
Expand Up @@ -35,11 +35,16 @@ addons:
apt:
packages: libboost-all-dev

# Start virtual X server, from https://docs.travis-ci.com/user/gui-and-headless-browsers/
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
# Xenial
services:
- xvfb

# Trusty
# Start virtual X server
# before_script:
# - "export DISPLAY=:99.0"
# - "sh -e /etc/init.d/xvfb start"
# - sleep 3 # give xvfb some time to start

script:
# Build and run tests
Expand Down

0 comments on commit d039d46

Please sign in to comment.