forked from FXMisc/RichTextFX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (39 loc) · 1.29 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
language: java
sudo: false # Linux OS: run in container
matrix:
include:
- os: linux
dist: precise
jdk: oraclejdk8
- os: linux
dist: trusty
jdk: oraclejdk8
# Headless Build: xvfb + TestFX does not work on Travis OSX environments (as of 2017-05-24)
- os: osx
osx_image: xcode8.2
env: _JAVA_OPTIONS="-Djava.awt.headless=true -Dtestfx.robot=glass -Dtestfx.headless=true -Dprism.order=sw -Dprism.text=t2k -Dtestfx.setup.timeout=2500"
# enable Java 8u45+, see https://github.com/travis-ci/travis-ci/issues/4042
addons:
apt:
packages:
- oracle-java8-installer
before_install:
- chmod +x .ci/before_install.sh
- .ci/before_install.sh
# skip install
install: true
before_script:
# Linux OS: Use framebuffer for UI
# See https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-a-GUI
- if [[ "${TRAVIS_OS_NAME}" == linux ]]; then export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start; fi
script:
- gradle assemble
- gradle check --stacktrace
# See https://docs.travis-ci.com/user/languages/java/#Caching
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/