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.
This commit is contained in:
Chris Beams 2014-11-05 01:41:14 +01:00
parent dc7d861f8e
commit c5809a97d8
No known key found for this signature in database
GPG Key ID: 3D214F8F5BC5ED73

View File

@ -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