-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
40 lines (32 loc) · 966 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
language: java
jdk:
- oraclejdk8
# install the newest java.
addons:
apt:
packages:
- oracle-java8-installer
# use operating systems.
os:
- linux
# 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"
# allow job to fail without framebuffer
matrix:
allow_failures:
- env: 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:
- if [ $USE_FRAMEBUFFER = "true" ]; then export DISPLAY=:99.0 && sh -e /etc/init.d/xvfb start; fi
# skip install stage.
install: true
# run gradle build.
script:
- ./gradlew build acceptanceTests --info