summaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorsoftprops <d.tangren@gmail.com>2018-10-08 23:02:38 -0400
committersoftprops <d.tangren@gmail.com>2018-10-08 23:02:38 -0400
commit4ed85e5a637a77e7ac9580dee94f0c069bc554f2 (patch)
tree0d371b196ae38539276e4cd2edeab4f033f981eb /.travis.yml
parent090a8bd5197314554881f9d90b1bfc2cda3df3b6 (diff)
conservative travis build cache
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml12
1 files changed, 8 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index bb01a68..61f8b46 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -20,12 +20,16 @@ script:
- cargo +nightly fmt --all -- --check
- RUSTFLAGS="$RUSTFLAGS -C link-dead-code" cargo test
+# Cache `cargo install`ed tools, but don't cache the project's `target`
+# directory (which ends up over-caching and filling all disk space!)
+# https://levans.fr/rust_travis_cache.html
cache:
- cargo: true
- apt: true
directories:
- - target/debug/deps
- - target/debug/build
+ - /home/travis/.cargo
+
+before_cache:
+ # But don't cache the cargo registry
+ - rm -rf /home/travis/.cargo/registry
addons:
apt: