-
Notifications
You must be signed in to change notification settings - Fork 44
/
.travis.yml
45 lines (34 loc) · 1 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
# Config file to set up TestFX correctly.
# Adapted from https://github.com/TestFX/TestFX/wiki/Travis-CI
# NOTE When updating, update https://stackoverflow.com/a/49116679/4126843 too
# and the one from java-template-project
language: java
jdk:
- openjdk8
- oraclejdk11
services:
- xvfb
before_install:
- sudo apt update
- sudo apt install openjfx
- chmod +x ./gradlew
- export DISPLAY=:99.0
install: true
before_script:
- touch local.properties
script:
- ./gradlew check
after_success:
# Generate coverage report and upload to coveralls
- ./gradlew check jacocoTestReport jacocoRootReports coveralls
# Also upload to codecov
- bash <(curl -s https://codecov.io/bash)
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
- rm -f $HOME/.gradle/caches/*/fileHashes/fileHashes.bin
- rm -f $HOME/.gradle/caches/*/fileHashes/fileHashes.lock
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/