Skip to content

Commit 5fda5b0

Browse files
committed
Use Travis before_cache instead of old script hack
guardian/gu-who@695866a80 See also travis-ci/travis-ci#4556
1 parent 5916284 commit 5fda5b0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ cache:
88
directories:
99
- $HOME/.sbt
1010
- $HOME/.ivy2
11-
script: sbt ++$TRAVIS_SCALA_VERSION test && find $HOME/.sbt -name "*.lock" -type f -delete && find $HOME/.ivy2/cache -name "*[\[\]\(\)]*.properties" -type f -delete
11+
before_cache:
12+
- find $HOME/.sbt -name "*.lock" -type f -delete
13+
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -type f -delete

0 commit comments

Comments
 (0)