forked from BITPlan/com.bitplan.radolan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (50 loc) · 1.61 KB
/
.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
41
42
43
44
45
46
47
48
49
50
#
# this is a java project using maven
language: java
#
# Java 8
#
# to avoid Unsupported major.minor version 52.0 we need to specify the JDK to be used
# https://stackoverflow.com/a/40208648/1497139
jdk: openjdk8
# support for headless Swing tests and other gui stuff
# see https://docs.travis-ci.com/user/gui-and-headless-browsers/
#
# as of 2017-08 precise is only available as an option
#
# uncomment the following lines to use xvfb with precise
dist: xenial
#before_script:
# - "export DISPLAY=:99.0"
# - "sh -e /etc/init.d/xvfb start"
# - sleep 3 # give xvfb some time to start
#
# 2017-08-20: trusty xvfb configuration
# see https://github.com/travis-ci/travis-ci/issues/8262#issue-251064430
#
# set the X11 Display variable as a global environment variable
env:
global:
- DISPLAY=:99
# start xvfb using the the DISPLAY port
before_script:
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- $DISPLAY -ac -screen 0 1280x1024x24"
- sleep 3
before_install: sudo apt-get install xvfb
# switch off gpg handling
# and split install and test phase of maven since xvfb will only
# be available in test phase
# let's first compile without tests
install: mvn install -D skipTests=true -Dgpg.skip=true
# do the tests separately after xvfb has been installed
script: mvn test
# we need a few extra packages to be installed
# 1. for Java FX support the latest oracle-java8 needs to be installed
# 2. xvfb is needed to run GUI tests and avoid headless mode
addons:
apt:
packages:
#- oracle-java8-installer
- xvfb
- openjfx
- mesa-utils