Skip to content

Commit 3f6318e

Browse files
committed
Configure Travis CI to cache dependencies
1 parent f5d3494 commit 3f6318e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.travis.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,14 @@ matrix:
1515
- env: TEST_ENV=ubuntu-18.04-llvm-dev
1616
- env: TEST_ENV=ubuntu-18.04-llvm-6.0
1717
- env: TEST_ENV=ubuntu-18.04-llvm-5.0
18+
19+
before_cache:
20+
# See https://www.scala-sbt.org/1.0/docs/Travis-CI-with-sbt.html
21+
# Tricks to avoid unnecessary cache updates
22+
- find $HOME/.sbt -name "*.lock" | xargs rm
23+
- find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm
24+
25+
cache:
26+
directories:
27+
- $HOME/.ivy2/cache
28+
- $HOME/.sbt/boot

0 commit comments

Comments
 (0)