Skip to content

Commit

Permalink
Adopt best practices in Travis Build
Browse files Browse the repository at this point in the history
Enable caching of SBT and downloaded artifacts

Use openjdk8 rather than oraclejdk.
  • Loading branch information
retronym committed Mar 28, 2019
1 parent cd13c1a commit 9b4c741
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,12 @@ sudo: false
language: scala
script: sbt '; extras/publishLocal; project plugin; ^scripted'
jdk:
- oraclejdk8
- oraclejdk8
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt
before_cache:
# Cleanup the cached directories to avoid unnecessary cache updates
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -print -delete
- find $HOME/.sbt -name "*.lock" -print -delete

0 comments on commit 9b4c741

Please sign in to comment.