-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
47 lines (45 loc) · 903 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
46
47
language: java
sudo: false
jdk: openjdk8
jobs:
include:
- stage:
name: JDK 8
before_script:
- |
if [[ "$TRAVIS_BRANCH" == "master" && -n "$TRAVIS_TAG" ]]; then
./build.sh "$TRAVIS_TAG"
else
./build.sh
fi
script: ./test.sh
- stage:
name: JDK 9
jdk: openjdk9
before_script: ./build.sh
script: ./test.sh
- stage:
name: JDK 10
jdk: openjdk10
before_script: ./build.sh
script: ./test.sh
- stage:
name: JDK 11
jdk: openjdk11
before_script: ./build.sh
script: ./test.sh
- stage:
name: JDK 12
jdk: openjdk12
before_script: ./build.sh
script: ./test.sh
deploy:
provider: releases
api_key:
secure: "TBD"
file_glob: true
file: ./target/*.jar
skip_cleanup: true
on:
jdk: openjdk8
tags: true