commit 0c6cfd9c652e4f5074151320ad31c32cc82818e9
parent ac28e56ccb402d640f5adde186a765265ce855c7
Author: rl1987 <rl1987@sdf.lonestar.org>
Date: Sun, 31 Mar 2019 16:58:32 +0300
Cleanup cargo registry before each Rust-enabled build
Also, refrain from caching target/.
See: https://levans.fr/rust_travis_cache.html
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/.travis.yml b/.travis.yml
@@ -5,8 +5,9 @@ cache:
## cargo: true
directories:
- $HOME/.cargo
- ## where we point CARGO_TARGET_DIR in all our cargo invocations
- - $TRAVIS_BUILD_DIR/src/rust/target
+
+before_cache:
+ - rm -rf $HOME/.cargo/registry
compiler:
- gcc