-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (34 loc) · 1.06 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
language: java
# java 9 and gradle 2 not supported
# java 9 and gradle 3 not supported
# Java 9 doesn't work with Gradle 4.0
jdk:
- openjdk8
env:
#- GRADLE_VERSION=2.14
#- GRADLE_VERSION=3.5.1
- GRADLE_VERSION=4.0.1
- GRADLE_VERSION=4.10.3
- GRADLE_VERSION=5.1.1
- GRADLE_VERSION=5.2.1
- GRADLE_VERSION=5.3.1
before_cache:
# Per https://guides.gradle.org/executing-gradle-builds-on-travisci/#enable_caching_of_downloaded_artifacts
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- node_modules
# Per https://guides.gradle.org/executing-gradle-builds-on-travisci/#enable_caching_of_downloaded_artifacts
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- .gradle
before_install:
# sdkman helps to install different gradle versions
- curl -s "https://get.sdkman.io" | bash
- source "$HOME/.sdkman/bin/sdkman-init.sh"
- echo sdkman_auto_answer=true > ~/.sdkman/etc/config
script:
- sdk install gradle $GRADLE_VERSION
#- jdk_switcher use $JAVA_VERSION
- gradle check