Remove cargo cache from travis
@@ -44,11 +44,11 @@ rust:
cache:
npm: true
- cargo: true
directories:
+ - $HOME/.cache
+ - $HOME/.cargo
- $HOME/.local
- $HOME/.kcov
- timeout: 900
dist: xenial
sudo: required
@@ -64,7 +64,7 @@ env:
- FEATURE=test
before_install:
- - sccache -V || cargo install sccache --vers $SCCACHE_VERS --force
+ - sccache -V | grep $SCCACHE_VERS || cargo install sccache --vers $SCCACHE_VERS --force
- export RUSTC_WRAPPER=sccache
@@ -154,13 +154,6 @@ jobs:
# - cd $TRAVIS_BUILD_DIR/examples/cryptocurrency/examples && ./test.ps1
# - cd $TRAVIS_BUILD_DIR/testkit/server && npm run proto && npm run test:unix
-before_cache:
- # `cache: cargo` directive adds the following command to the before_cache phase of the job in order to reduce cache size.
- # We explicitly added it because our before_cache script is customised.
- - rm -rf $TRAVIS_HOME/.cargo/registry/src
- # Remove all libraries and artifacts related to exonum. An exception is a exonum_sodiumoxide crate. We want to cache it.
- - find target -name '*exonum*' -and -not -name '*exonum_sodiumoxide*' -and -not -name '*exonum_libsodium*' -prune -exec rm -rf {} \;
-
notifications:
webhooks:
urls:
