forked from exercism/java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (39 loc) · 1.3 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
43
44
45
46
47
48
---
language: java
jdk:
- oraclejdk8
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:
- travis_retry rvm install 2.2.5
- rvm use 2.2.5
# 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/
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/9a8514b96052a7155b59
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always