-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy path.travis.yml
80 lines (80 loc) · 2.31 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
notifications:
email: false
git:
quiet: true
depth: 1
env:
global:
- TERM=dumb
language: java
jdk: openjdk8
install: true
addons:
apt:
update: true
packages:
- zip
- unzip
- curl
- bash
before_install:
# gradle
- curl -s "https://get.sdkman.io" | bash
- source "$HOME/.sdkman/bin/sdkman-init.sh"
- sdk selfupdate
- touch "$HOME/.sdkman/etc/config"
- sed -i -e 's/^sdkman_auto_answer=false$/sdkman_auto_answer=true/g' "$HOME/.sdkman/etc/config"
- sdk use gradle 5.5-rc-2
- sdk install gradle
- mkdir -p "$HOME/.sdkman/etc"
- sdk use gradle
- source "$HOME/.sdkman/bin/sdkman-init.sh"
jobs:
include:
# java 8
- stage: openjdk8
jdk: openjdk8
name: "Maven Java 8 Build"
script:
- cd $TRAVIS_BUILD_DIR
- mvn -N io.takari:maven:wrapper -Dmaven=3.6.1
- ./mvnw
- java -jar target/*-SNAPSHOT.jar
- stage: openjdk8
jdk: openjdk8
name: "Maven Java 8 Updates"
script: cd $TRAVIS_BUILD_DIR && mvn -N io.takari:maven:wrapper -Dmaven=3.6.1 && ./mvnw versions:display-property-updates
- stage: openjdk8
jdk: openjdk8
name: "Gradle Java 8 Build"
script:
- cd $TRAVIS_BUILD_DIR
- gradle :wrapper
- ./gradlew
- java -jar build/libs/*-SNAPSHOT.jar
- stage: openjdk8
jdk: openjdk8
name: "Gradle Java 8 Updates"
script: cd $TRAVIS_BUILD_DIR && gradle :wrapper && ./gradlew dependencyUpdates -Drevision=release
# java 11
- stage: openjdk11
jdk: openjdk11
name: "Maven Java 11 Build"
script: cd $TRAVIS_BUILD_DIR ; mvn -N io.takari:maven:wrapper -Dmaven=3.6.1 ; ./mvnw ; java -jar target/*-SNAPSHOT.jar
- stage: openjdk11
jdk: openjdk11
name: "Maven Java 11 Updates"
script: cd $TRAVIS_BUILD_DIR ; mvn -N io.takari:maven:wrapper -Dmaven=3.6.1 ; ./mvnw versions:display-property-updates
- stage: openjdk11
jdk: openjdk11
name: "Gradle Java 11 Build"
script: cd $TRAVIS_BUILD_DIR ; gradle :wrapper ; ./gradlew ; java -jar build/libs/*-SNAPSHOT.jar
- stage: openjdk11
jdk: openjdk11
name: "Gradle Java 11 Updates"
script: cd $TRAVIS_BUILD_DIR ; gradle :wrapper ; ./gradlew dependencyUpdates -Drevision=release
cache:
directories:
- ~/.gradle
- ~/.m2
packages: true