Skip to content

Commit 0d70bd8

Browse files
committed
Travis Gradle improvements
* Compile for both OpenJDK8 and 11 * Inhibit the install phase, so the compile warnings are visible in final travis output. * Override the gradle command to get both assemble and check. * Cache the gradle caches and wrapper so builds are less expensive.
1 parent 5a44e43 commit 0d70bd8

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.travis.yml

+17-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,17 @@
1-
language: java
1+
language: java
2+
jdk:
3+
- openjdk8
4+
- openjdk11
5+
install: {}
6+
script:
7+
- ./gradlew assemble check
8+
9+
before_cache:
10+
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
11+
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
12+
13+
cache:
14+
directories:
15+
- $HOME/.gradle/caches/
16+
- $HOME/.gradle/wrapper/
17+

0 commit comments

Comments
 (0)