forked from controlsfx/controlsfx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (36 loc) · 931 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
matrix:
fast_finish: true
include:
- jdk: oraclejdk8
if: tag =~ ^8\.[0-9]+\.[0-9]+ # match 8.x.x
- jdk: openjdk11
if: branch = jfx-13 OR tag =~ ^[0-9]+[0-9]+\.[0-9]+\.[0-9]+ # match xx.x.x
# run in container
sudo: false
# use linux as operating system
os: linux
dist: trusty
# Do not run travis install step `./gradlew assemble`
install: true
before_script: chmod +x gradlew
# Assemble jars
script: ./gradlew clean build -Ptransifex.api=$TRANSIFEX_API
cache:
directories:
- $HOME/.gradle/caches/
deploy:
# Deploy snapshots on every commit made to jfx-13 branch
- provider: script
script: bash .ci/deploy-snapshot.sh
skip_cleanup: true
on:
all_branches: true
condition: $TRAVIS_BRANCH = jfx-13
# Deploy releases on every tag push
- provider: script
script: bash .ci/deploy.sh
skip_cleanup: true
on:
tags: true