travis: Attempt to fix xvfb

This commit is contained in:
Rob Loach 2019-01-14 21:28:51 -05:00 committed by Mathieu Comandon
parent d3cebaad54
commit d7cd8a75bc

View file

@ -6,9 +6,13 @@ virtualenv:
system_site_packages: true
services:
- xvfb
addons:
apt:
packages:
- xvfb
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16"
- sleep 3 # Give xvfb some time to start
install: