diff options
author | rl1987 <rl1987@sdf.lonestar.org> | 2019-03-31 16:58:32 +0300 |
---|---|---|
committer | teor <teor@torproject.org> | 2019-04-01 14:08:12 +1000 |
commit | 0c6cfd9c652e4f5074151320ad31c32cc82818e9 (patch) | |
tree | d28ae54437a0122ea2fb4d33b9fd8442c37a2ded | |
parent | ac28e56ccb402d640f5adde186a765265ce855c7 (diff) | |
download | tor-0c6cfd9c652e4f5074151320ad31c32cc82818e9.tar.gz tor-0c6cfd9c652e4f5074151320ad31c32cc82818e9.zip |
Cleanup cargo registry before each Rust-enabled build
Also, refrain from caching target/.
See: https://levans.fr/rust_travis_cache.html
-rw-r--r-- | .travis.yml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml index 87780bb1a6..4b2a1ffd7a 100644 --- 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 |