Reduce cache size on travis (#532)

The Windows build fails often because it takes too long to store the build cache (timeout). This commit uses `cargo cache` to clean up the /home/philipp/.cargo directory before caching. It also removes caching of the `target` directory since it needs to be recompiled for each new nightly anyway.
This commit is contained in:
Philipp Oppermann
2019-01-21 23:30:02 +01:00
committed by GitHub
parent 19b7fbc350
commit b4238e93af

View File

@@ -25,8 +25,8 @@ os:
- windows
cache:
cargo: true
directories:
- $HOME/.cargo
- $HOME/Library/Caches/Homebrew
addons:
@@ -45,9 +45,11 @@ before_script:
- (test -x $HOME/.cargo/bin/cargo-update-installed || cargo install cargo-update-installed)
- (test -x $HOME/.cargo/bin/cargo-xbuild || cargo install cargo-xbuild)
- (test -x $HOME/.cargo/bin/bootimage || cargo install bootimage)
- (test -x $HOME/.cargo/bin/cargo-cache || cargo install cargo-cache)
- cargo update-installed
script:
- bootimage build
- cargo test
- bootimage test
- cargo cache --autoclean