Cleanup cargo registry before each Rust-enabled build

Also, refrain from caching target/.

See: https://levans.fr/rust_travis_cache.html
This commit is contained in:
rl1987 2019-03-31 16:58:32 +03:00 committed by teor
parent ac28e56ccb
commit 0c6cfd9c65
No known key found for this signature in database
GPG key ID: 10FEAA0E7075672A

View file

@ -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