From 99a1ea18d9c9bf15fe45b90e97dc044d2312bb99 Mon Sep 17 00:00:00 2001 From: petr-tik Date: Fri, 19 Apr 2019 23:21:05 +0100 Subject: [PATCH 1/2] Delete files from target/ dir to avoid caching them on CI idea from here https://github.com/rust-lang/cargo/issues/5885#issuecomment-432723546 --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index 0279e2b622..53e1e2926c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -68,6 +68,9 @@ cache: cargo before_cache: # Travis can't cache files that are not readable by "others" - chmod -R a+r $HOME/.cargo + - find ./target/debug -type f -maxdepth 1 -delete + - rm -f ./target/.rustc_info.json + - rm -fr ./target/debug/{deps,.fingerprint}/tantivy* #branches: # only: From ab936cb58a59b75aac59c9217272907fa1fdf278 Mon Sep 17 00:00:00 2001 From: petr-tik Date: Sat, 20 Apr 2019 00:22:21 +0100 Subject: [PATCH 2/2] Delete examples --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 53e1e2926c..8f3a272ba2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -71,6 +71,8 @@ before_cache: - find ./target/debug -type f -maxdepth 1 -delete - rm -f ./target/.rustc_info.json - rm -fr ./target/debug/{deps,.fingerprint}/tantivy* + - rm -r target/debug/examples/ + - ls -1 examples/ | sed -e 's/\.rs$//' | xargs -I "{}" find target/* -name "*{}*" -type f -delete #branches: # only: