Skip to content

Commit

Permalink
(chore) Travis: Configure matrix jobs, one with X11 framebuffer and o…
Browse files Browse the repository at this point in the history
…ne with headless environment.
  • Loading branch information
hastebrot committed Mar 18, 2015
1 parent ac29a26 commit 6260cf1
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,25 @@ jdk:
# use operating systems.
os:
- linux
#- osx

# run in container und keep gradle cache.
sudo: false
cache:
directories:
- $HOME/.gradle

# setup jobs.
env:
- USE_FRAMEBUFFER=true
- USE_FRAMEBUFFER=false _JAVA_OPTIONS="-Djava.awt.headless=true -Dtestfx.robot=glass -Dtestfx.headless=true -Dprism.order=sw -Dprism.text=t2k -Dtestfx.setup.timeout=2500"

# run on xvfb screen.
#before_install:
# - export DISPLAY=:99.0
# - sh -e /etc/init.d/xvfb start
before_install:
- if [ $USE_FRAMEBUFFER = "true" ]; then echo "starting xvfb..." && export DISPLAY=:99.0 && sh -e /etc/init.d/xvfb start; fi

# skip install stage.
install: true

# run gradle build.
env:
#- _JAVA_OPTIONS=
- _JAVA_OPTIONS="-Djava.awt.headless=true -Dtestfx.robot=glass -Dtestfx.headless=true -Dprism.order=sw -Dprism.text=t2k -Dtestfx.setup.timeout=2500"

script:
- ./gradlew build

0 comments on commit 6260cf1

Please sign in to comment.