forked from exercism/kotlin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 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
35
36
37
38
39
40
41
42
---
dist: trusty
language: java
jdk:
- openjdk11
env:
- SCRIPT=bin/unit-tests.sh
- SCRIPT=bin/run-journey-test-from-ci.sh
# http://docs.travis-ci.com/user/migrating-from-legacy
sudo: false
addons:
apt:
packages:
- tree
before_install:
- rvm install 2.2.5
- rvm use 2.2.5
- bin/build-jq.sh # we want jq 1.5 features; not avail through pkg repo.
# https://docs.travis-ci.com/user/customizing-the-build#Skipping-the-Installation-Step
install: true # if we don't skip install, ./gradlew assemble is invoked, but this task is not available.
before_script:
- export PATH=$TRAVIS_BUILD_DIR/bin:$PATH # ensure our tools are prefered over included ones.
script:
- $SCRIPT
# configure caching (https://docs.travis-ci.com/user/languages/java/#Caching)
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
# format from https://docs.travis-ci.com/user/caching/#Enabling-multiple-caching-features
cache:
bundler: true
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/