Skip to content

Commit c967031

Browse files
petr-tikfulmicoton
authored andcommitted
Delete files from target/ dir to avoid caching them on CI (#531)
* Delete files from target/ dir to avoid caching them on CI idea from here rust-lang/cargo#5885 (comment) * Delete examples
1 parent d823163 commit c967031

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ cache: cargo
6868
before_cache:
6969
# Travis can't cache files that are not readable by "others"
7070
- chmod -R a+r $HOME/.cargo
71+
- find ./target/debug -type f -maxdepth 1 -delete
72+
- rm -f ./target/.rustc_info.json
73+
- rm -fr ./target/debug/{deps,.fingerprint}/tantivy*
74+
- rm -r target/debug/examples/
75+
- ls -1 examples/ | sed -e 's/\.rs$//' | xargs -I "{}" find target/* -name "*{}*" -type f -delete
7176

7277
#branches:
7378
# only:

0 commit comments

Comments
 (0)