From c5809a97d8002906d4589fcb04317642f864f21b Mon Sep 17 00:00:00 2001 From: Chris Beams Date: Wed, 5 Nov 2014 01:41:14 +0100 Subject: [PATCH] Use Xvfb to avoid 'cannot open display' warnings Builds began failing on Travis CI with the following message: Gtk-WARNING **: cannot open display: This is because of tests like ViewLoaderTest, which now initialize the JavaFX toolkit and expect a display in the process. This change starts an Xvfb server (conveniently already available under Travis CI) in order to provide a lightweight X11 environment and eliminate this problem. --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index 1f8fdacac0..fde7fbb678 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,10 @@ language: java jdk: oraclejdk8 +before_install: + - "export DISPLAY=:99.0" + - "sh -e /etc/init.d/xvfb start" + notifications: irc: channels: chat.freenode.net#bitsquare