forked from GoogleContainerTools/jib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (31 loc) · 834 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
sudo: false
git:
depth: 3
language: java
matrix:
include:
- name: Oracle JDK 8 on Trusty
# using `openjdk8` leads to javadoc errors
jdk: oraclejdk8
dist: trusty # oraclejdk8 absent in Xenial
- name: OpenJDK 11
jdk: openjdk11
env:
global:
- TERM=dumb # for gradle
install: true
script:
- ./gradlew clean build --stacktrace
# cobbled together from
# https://docs.travis-ci.com/user/languages/java/#projects-using-gradle
# https://github.com/blox/blox/pull/338#issuecomment-358556137
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
- rm -fr $HOME/.gradle/caches/*/fileHashes/
- rm -fr $HOME/.gradle/caches/jars-3/
cache:
directories:
- $HOME/.m2
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/