Simplify management of virtual frame buffer X server (#181)

Using the `xvfb-run` script gives us automatic lifetime management for
the virtual X server: it will start before the `mvn` test script and
will terminate when that test script exits.  The `xvfb-run` script
also sets `$DISPLAY` properly in the `mvn` test script, so we no
longer need to manage that setting ourselves.
This commit is contained in:
Ben Liblit 2017-05-15 18:02:52 +02:00 committed by Manu Sridharan
parent 0ffd2bcee4
commit 1bebbeb8e9
1 changed files with 1 additions and 3 deletions

View File

@ -1,13 +1,11 @@
language: android
jdk: oraclejdk8
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- "git clone --depth=1 https://github.com/secure-software-engineering/DroidBench.git /tmp/DroidBench"
install:
- mvn clean verify -DskipTests=true -B -q
script:
- mvn clean verify -B -q
- xvfb-run mvn clean verify -B -q
- jdk_switcher use oraclejdk7
- ./build-maven-jars.py "install -Dgpg.skip"
sudo: false