forked from lagom/lagom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (34 loc) · 1.03 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
language: scala
sudo: false
jdk:
- oraclejdk8
env:
matrix:
- SCRIPT=test
- SCRIPT=test-sbt
- SCRIPT=test-maven
- SCRIPT=test-documentation
- SCRIPT=test-code-style
# important to use eval, otherwise "&&" is passed as an argument to sbt rather than being processed by bash
script: bin/$SCRIPT
before_install:
# See https://github.com/travis-ci/travis-ci/issues/4629#issuecomment-239493916
- rm ~/.m2/settings.xml
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt/boot/scala*
- $HOME/.m2/repository
before_cache:
# Ensure changes to the cache aren't persisted
- rm -rf $HOME/.ivy2/cache/com.lightbend.lagom/*
- rm -rf $HOME/.ivy2/cache/scala_*/sbt_*/com.lightbend.lagom/*
- rm -r $HOME/.m2/repository/com/lightbend/lagom/*
# 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/773aba95141768c32dae
on_success: always
on_failure: always