forked from edvin/tornadofx
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
45 lines (36 loc) · 843 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
41
42
43
44
45
# use java support.
language: java
jdk:
- openjdk11
- openjdk12
# run in container.
sudo: false
# use linux as operating system.
os: linux
matrix:
fast_finish: true
include:
- jdk: openjdk8
if: branch = master OR tag =~ ^v1\.[0-9]+\.[0-9]+ # match v1.x.x
- jdk: openjdk11
if: branch = jdk10 OR tag =~ ^v2\.[0-9]+\.[0-9]+ # match v2.x.x
# configure xvfb screen.
services:
- xvfb
before_install:
- sudo apt-get install -y openjfx
# skip install stage.
install: true
# run maven build.
script:
- mvn test
cache:
directories:
- $HOME/.m2
deploy:
# Deploy snapshots & releases on every commit made to master
- provider: script
script: "cp .travis.settings.xml $HOME/.m2/settings.xml && mvn deploy -Dmaven.test.skip=true -Dgpg.skip=true"
skip_cleanup: true
on:
all_branches: true