forked from controlsfx/controlsfx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (35 loc) · 973 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
# use java support
language: java
matrix:
fast_finish: true
include:
- jdk: oraclejdk8
if: branch = master OR tag =~ ^v8\.[0-9]+\.[0-9]+ # match v8.x.x
- jdk: openjdk11
if: branch = 9.0.0 OR tag =~ ^v[0-9]+[0-9]+\.[0-9]+\.[0-9]+ # match vxx.x.x
# run in container
sudo: false
# use linux as operating system
os: linux
# Do not run travis install step `./gradlew assemble`
install: true
# Assemble jars
script:
- ./gradlew clean assemble -Ptransifex.api=$TRANSIFEX_API
cache:
directories:
- $HOME/.gradle/caches/
deploy:
# Deploy snapshots on every commit made to master and 9.0.0 branch
- provider: script
script: ./gradlew uploadPublished -PsonatypeUsername=$SONATYPE_USERNAME -PsonatypePassword=$SONATYPE_PASSWORD
skip_cleanup: true
on:
tags: false
all_branches: true
# Deploy releases on every tag push
- provider: script
script: sh .ci/deploy.sh
skip_cleanup: true
on:
tags: true