Skip to content
This repository was archived by the owner on Apr 23, 2019. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 33 additions & 23 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
language: scala
scala:
- 2.12.7
jdk:
- oraclejdk8
- openjdk11
- 2.12.8

before_install:
- curl -sL https://github.com/shyiko/jabba/raw/master/install.sh | bash && . ~/.jabba/jabba.sh

env:
global:
- JABBA_HOME=$HOME/.jabba
matrix:
- SCRIPT=scripts/test-sbt
- SCRIPT=scripts/test-gradle
script:
- $SCRIPT
cache:
directories:
- "$HOME/.ivy2/cache"
- "$HOME/.gradle/caches"
before_cache:
- rm -rf $HOME/.ivy2/cache/com.typesafe.play/*
- rm -rf $HOME/.ivy2/cache/scala_*/sbt_*/com.typesafe.play/*
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -print0 | xargs -n10 -0 rm
# There is no concise way to specify multi-dimensional build matrix:
# https://github.com/travis-ci/travis-ci/issues/1519
- SCRIPT=scripts/test-sbt TRAVIS_JDK=adopt@1.8.192-12
- SCRIPT=scripts/test-sbt TRAVIS_JDK=adopt@1.11.0-1
- SCRIPT=scripts/test-gradle TRAVIS_JDK=adopt@1.8.192-12
- SCRIPT=scripts/test-gradle TRAVIS_JDK=adopt@1.11.0-1

# Exclude some combinations from build matrix. See:
# https://docs.travis-ci.com/user/customizing-the-build/#Build-Matrix
Expand All @@ -27,14 +24,27 @@ matrix:
# Current release of Gradle still does not supports Play 2.7.x releases
# As soon as there is a release of Gradle that fixes that, we can then
# remove this allowed failure.
- env: SCRIPT=scripts/test-gradle
- env: SCRIPT=scripts/test-gradle TRAVIS_JDK=adopt@1.8.192-12
- env: SCRIPT=scripts/test-gradle TRAVIS_JDK=adopt@1.11.0-1
# Java 11 is still not fully supported. It is good that we are already
# testing our sample applications to better discover possible problems
# but we can allow failures here too.
- jdk: openjdk11
- env: SCRIPT=scripts/test-sbt TRAVIS_JDK=adopt@1.11.0-1

install:
- $JABBA_HOME/bin/jabba install $TRAVIS_JDK
- unset _JAVA_OPTIONS
- export JAVA_HOME="$JABBA_HOME/jdk/$TRAVIS_JDK" && export PATH="$JAVA_HOME/bin:$PATH" && java -Xmx32m -version

# See https://blog.travis-ci.com/2014-03-13-slack-notifications/
# created with travis encrypt command line tool
notifications:
slack:
secure: ltgIyHnWM/apr/VaeX9diKH6o4chcZO+1SUmjTuJIoRJCMdKjv0TY4k+HMabLwe/4ZXhzZ/nq2VhbUZDnvsL90b9MfeDjcvf9ku20MSNuiDvZZC3yYgj7I+x3Y2kbVZcugTPbl2Ig0UGqSGCuVyqYnLSBPQ1LOn/gug3hGMqcJ5vb40g1zRPG842yZjJ5UTo5suitPc63YYuAcddoBnBCqAez+2Z8W4Gf6vu27DonTEcisiu2MmWD2X2AqmahuZi7TE0c3o3CBrrY38N+EPvonuBHSO03vaCF0XvabOxALHzLQDG6byw/u4anGXpa0/dhrT6gglb31y10hzxH6yfb2p9a/LNrY4gKyz4bzEBplTb7uogaJCJpYiQDdINxRGkVdbHRDyuAsEo+Y7y6pW60oEOLUuLmvKSAjPNp5k1o2Mmx13O1SBbAxP6YSiZStptKYko8BlSEIsBSvhXaZuIcoAeMgypcxyemZWi9QBIH+SNgueIdGCTBZ5lQe+nBLhjft+0hFnV9mJMazGmvaue5UGukalLhHgyNhnGdTrC1QVjU53iDY95GY3QJhcdnXr6cCvEAZvHwefjnTLCiKqNAgG77Y3w8CH5vyFwoS/dYFzl08urIxblxL8bUrI5vgNrt38gW/vKHxXZBzj6c80xyfdVGcdex/m/jI5BllLMH3A=
script:
- $SCRIPT

before_cache:
- find $HOME/.ivy2 -name "ivydata-*.properties" -delete
- find $HOME/.sbt -name "*.lock" -delete

cache:
directories:
- "$HOME/.ivy2/cache"
- "$HOME/.gradle/caches"
- "$HOME/.jabba/jdk"
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version := "2.7.x"

lazy val root = (project in file(".")).enablePlugins(PlayJava)

scalaVersion := "2.12.7"
scalaVersion := "2.12.8"

testOptions in Test := Seq(Tests.Argument(TestFrameworks.JUnit, "-a", "-v"))

Expand All @@ -13,4 +13,4 @@ libraryDependencies += guice
javacOptions ++= Seq(
"-Xlint:unchecked",
"-Xlint:deprecation"
)
)
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.2.1
sbt.version=1.2.8