Skip to content
Snippets Groups Projects
Unverified Commit 33be8d82 authored by teor's avatar teor
Browse files

Travis: merge before_cache from 29036 and 29962

And add some useful comments
parent 124990aa
No related branches found
No related tags found
No related merge requests found
......@@ -5,9 +5,10 @@ cache:
## cargo: true
directories:
- $HOME/.cargo
before_cache:
- rm -rf $HOME/.cargo/registry
## caching CARGO_TARGET_DIR actually slows down the build over time,
## because old build products are never deleted.
## where we point CARGO_TARGET_DIR in all our cargo invocations
#- $TRAVIS_BUILD_DIR/src/rust/target
compiler:
- gcc
......@@ -217,6 +218,9 @@ after_failure:
before_cache:
## Delete all gcov files.
- if [[ "$COVERAGE_OPTIONS" != "" ]]; then make reset-gcov; fi
## Delete the cargo registry before caching .cargo, because it's cheaper to
## download the registry and throw it away, rather than caching it
- rm -rf $HOME/.cargo/registry
notifications:
irc:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment