-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (53 loc) · 1.71 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
46
47
48
49
50
51
52
53
54
55
56
# Programming language
language: java
before_script:
# Install the tool to switch between JDK versions
- wget https://raw.githubusercontent.com/sormuras/bach/master/install-jdk.sh
### Maven basic build ###
# Build project, installing to local repo (skip testing and javadoc generation (if those exist))
install:
# Normal build part
- mvn clean install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
jobs:
include:
# 1. Test project against various JDKs
- stage: Test against various JDKs
# Current stable version whatever it is
env: JDK=ea
script:
- source ./install-jdk.sh --verbose --feature ea
- mvn -q verify
- # Java 14 (very experimental)
env: JDK=14
script:
- source ./install-jdk.sh --verbose --feature 14
- mvn -q verify
- # Java 13 (upcoming stable (experimental))
env: JDK=13
script:
- source ./install-jdk.sh --verbose --feature 13
- mvn -q verify
- # Java 12 (latest stable)
env: JDK=12
script:
- source ./install-jdk.sh --verbose --feature 12
- mvn -q verify
- # Java 11 (LTS)
env: JDK=11
script:
- source ./install-jdk.sh --verbose --feature 11
- mvn -q verify
- # Java 8 (good == old == stable)
env: JDK=8
jdk: openjdk8
script: mvn -q verify
# 2. Deploy
- stage: deploy
jdk: openjdk8 # Use the minimal supported version (this assures that no version-specific bytecode gets generated)
if: repo = JarvisCraft/padla AND branch IN (master, development) AND type != pull_request
script:
- bash attempt-travis-deploy.sh
# Cached directories
cache:
directories:
- ~/.m2/repository # Maven repository