language: scala
scala:
- 2.11.7
jdk:
- openjdk7
sudo: false
cache:
  directories:
  - $HOME/.sbt
  - $HOME/.ivy2
script: sbt ++$TRAVIS_SCALA_VERSION test && find $HOME/.sbt -name "*.lock" -type f -delete && find $HOME/.ivy2/cache -name "*[\[\]\(\)]*.properties" -type f -delete

language: scala
scala:
- 2.11.7
jdk:
- openjdk7
sudo: false
cache:
  directories:
  - $HOME/.sbt
  - $HOME/.ivy2
before_cache:
  - find $HOME/.sbt -name "*.lock" -type f -delete -print
  - find $HOME/.ivy2/cache -name "ivydata-*.properties" -type f -delete -print


Use `before_cache` to prevent unnecessary Travis dependency repacks
Use `before_cache` to prevent unnecessary Travis dependency repacks

http://docs.travis-ci.com/user/caching/#before_cache-phase

This replaces this nasty hack: guardian/gu-who@83d29a1

Looks like this feature was added in March, which was why I didn't spot it
for the original introduction of the unpleasant hack.

travis-ci/travis-build@d2a1f8f
