From f895b83bd53e8b18fc0db622a3aadf65e68f8103 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martynas=20Mickevi=C4=8Dius?= Date: Thu, 24 Jan 2019 09:54:41 +0100 Subject: [PATCH] Use AdoptOpenJDK --- .travis.yml | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9c62ad81..df74bfb9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,19 +1,24 @@ # use Docker-based container (instead of OpenVZ) sudo: false +language: scala + +before_install: + # using jabba for custom jdk management + - curl -sL https://raw.githubusercontent.com/shyiko/jabba/0.11.2/install.sh | bash && . ~/.jabba/jabba.sh + - jabba install adopt@1.8.202-08 + - java -version + +script: + - sbt ++$TRAVIS_SCALA_VERSION test doc + +before_cache: + # Remove to avoid unnecessary cache updates + - find $HOME/.sbt -name "*.lock" -delete + - find $HOME/.ivy2 -name "ivydata-*.properties" -delete + cache: directories: - $HOME/.ivy2/cache - $HOME/.sbt/boot - -language: scala - -jdk: - - oraclejdk8 - -script: - - sbt ++$TRAVIS_SCALA_VERSION test doc - - # Remove to avoid unnecessary cache updates - - find $HOME/.sbt -name "*.lock" -delete - - find $HOME/.ivy2 -name "ivydata-*.properties" -delete + - $HOME/.jabba/jdk