forked from playframework/playframework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (36 loc) · 1.16 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
language: scala
sudo: false
# This is needed as long as the travis build environment is JDK 1.8.0 < u40 (at time of writing it is u31)
# Otherwise, FSpec fails due to deadlocks caused by CompletableFuture.thenCompose blocking in the trampoline
# executor.
addons:
apt:
packages:
- oracle-java8-installer
jdk:
- oraclejdk8
env:
# Define scripts here so they run concurrently
- SCRIPT=checkCodeStyle
- SCRIPT=test
- SCRIPT=testSbtPlugins
- SCRIPT=testDocumentation
- SCRIPT=testTemplates
script:
# Force sbt to run on a single CPU, this limits the resources Play uses
- framework/bin/$SCRIPT "set concurrentRestrictions in Global += Tags.limitAll(1)"
cache:
directories:
- $HOME/.ivy2/cache
before_cache:
# Ensure changes to the cache aren't persisted
- rm -rf $HOME/.ivy2/cache/com.typesafe.play/*
- rm -rf $HOME/.ivy2/cache/scala_*/sbt_*/com.typesafe.play/*
# Delete all ivydata files since ivy touches them on each build
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -print0 | xargs -n10 -0 rm
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/d2c8a242a2615f659595
on_success: always
on_failure: always