forked from lagom/lagom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
26 lines (26 loc) · 957 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
language: scala
sudo: false
jdk:
- oraclejdk8
env:
matrix:
- SCRIPT="sbt -jvm-opts .travis-jvmopts test"
- SCRIPT="sbt -jvm-opts .travis-jvmopts publishLocal scripted"
- SCRIPT="sbt -jvm-opts .travis-jvmopts unidoc && cd docs && sbt -jvm-opts .travis-jvmopts markdownValidateDocs test markdownEvaluateSbtFiles"
# important to use eval, otherwise "&&" is passed as an argument to sbt rather than being processed by bash
script: eval $SCRIPT
cache:
directories:
- $HOME/.ivy2/cache
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/*
# 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