forked from lagom/lagom-java-sbt-chirper-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
30 lines (30 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
language: scala
sudo: false
jdk:
- oraclejdk8
# This skips the install step.
# See https://docs.travis-ci.com/user/customizing-the-build#Skipping-the-Installation-Ste
install: true
script: $SCRIPT
env:
matrix:
- SCRIPT="./sbt-build"
cache:
directories:
- $HOME/.m2
- $HOME/.ivy2/cache
- $HOME/.nvm
- $HOME/.sbt/launchers
before_cache:
# Ensure changes to the cache aren't persisted
- rm -rf $HOME/.m2/repository/com/lightbend/lagom/sample/chirper
- rm -rf $HOME/.ivy2/cache/com/lightbend/lagom/sample/chirper
# Delete all ivydata files since ivy touches them on each build
- find $HOME/.ivy2/cache -name "ivydata-*.properties" | xargs rm
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/2aa0aeda88d31fe293d4
on_success: change
on_failure: always
on_start: never