travis: use standard cargo cache on travis

https://changelog.travis-ci.com/rust-caching-improvements-106581

seems to have been improved/fixed
This commit is contained in:
Дамјан Георгиевски 2019-09-14 15:33:55 +02:00 committed by GitHub
parent 302df9eff2
commit 90e834722c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,6 @@
language: rust
rust: stable
cache: cargo
sudo: false
env:
@ -36,13 +37,3 @@ deploy:
# channel to use to produce the release artifacts
condition: $TRAVIS_RUST_VERSION = stable
tags: true
## Need to cache the whole `.cargo` directory to keep .crates.toml for
## cargo-update to work
cache:
directories:
- ${TRAVIS_HOME}/.cargo
## But don't cache the cargo registry
before_cache:
- rm -rf ${TRAVIS_HOME}/.cargo/registry