Skip to content

Commit 12c5f04

Browse files
committed
Fixed Travis xvfb issue.
We can't run the "sh -e /etc/init.d/xvfb start" command anymore. Instead we now need to specify that we need the xvfb service.
1 parent 01e61ad commit 12c5f04

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.travis.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,13 @@ before_install:
3838
install:
3939
# Using clean as dummy target; could install dependencies here if needed.
4040
- ./gradlew clean
41-
42-
# Use xvfb to run tests that require a GUI and give it some time to start
41+
42+
# Use xvfb to run tests that require a GUI.
43+
services:
44+
- xvfb
45+
4346
before_script:
4447
- "export DISPLAY=:99.0"
45-
- "sh -e /etc/init.d/xvfb start"
46-
- sleep 3
4748

4849
# Build the project
4950
script:
@@ -87,4 +88,4 @@ deploy:
8788
skip_cleanup: true
8889
on:
8990
tags: true
90-
jdk: oraclejdk8
91+
jdk: oraclejdk8

0 commit comments

Comments
 (0)