-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
36 lines (30 loc) · 1.05 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
# Using Docker instead because there's a bug in the default (ancient) environment Travis uses for Java
#language: java
#install: ""
#script: TERM=dumb ./gradlew -i --no-daemon clean check
#jdk:
#- oraclejdk8
services:
- docker
before_install:
- docker pull openjdk:8u121-jdk
script:
- docker run -v $HOME/.gradle:/.gradle -v $PWD:/src -w /src openjdk:8u121-jdk ./gradlew -i --no-daemon clean check -g /.gradle
#
# Caching per https://docs.travis-ci.com/user/languages/java/
#
before_cache:
- rm -f $HOME/.gradle/caches/2.14.1/plugin-resolution/cache.properties.lock
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
# Hack to get git-lfs installed until it's part of the official images
# https://github.com/travis-ci/travis-ci/issues/3634#issuecomment-220554067
before_install:
- mkdir -p $HOME/bin
- wget https://github.com/github/git-lfs/releases/download/v1.1.2/git-lfs-linux-amd64-1.1.2.tar.gz
- tar xvfz git-lfs-linux-amd64-1.1.2.tar.gz
- mv git-lfs-1.1.2/git-lfs $HOME/bin/git-lfs
- export PATH=$PATH:$HOME/bin/
before_script: git lfs pull