[tor-commits] [tor/release-0.4.0] Cleanup cargo registry before each Rust-enabled build

asn at torproject.org asn at torproject.org
Fri Apr 5 11:55:32 UTC 2019


commit 0c6cfd9c652e4f5074151320ad31c32cc82818e9
Author: rl1987 <rl1987 at sdf.lonestar.org>
Date:   Sun Mar 31 16:58:32 2019 +0300

    Cleanup cargo registry before each Rust-enabled build
    
    Also, refrain from caching target/.
    
    See: https://levans.fr/rust_travis_cache.html
---
 .travis.yml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 87780bb1a..4b2a1ffd7 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





More information about the tor-commits mailing list