From c8d762ddffe3e71415f370b32c3e89226ebd035c Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 20 Jul 2019 17:08:47 +0300 Subject: speedup CI --- .travis.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index e5960ebca..8ac01171f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,9 @@ cache: cargo before_cache: - - find ./target/debug -maxdepth 1 -type f -delete - - rm -fr ./target/debug/{deps,.fingerprint}/{*ra_*,*test*,*gen_lsp*,*thread_worker*} + # ask Cargo to clean up artifacts for workspace crates + - cargo clean $(printf -- '--package %s ' $(cd crates; ls)) + # Cargo doesn't clean up depinfo itself, do it manually + - find ./target/debug -maxdepth 2 -iname '*.d' -delete - rm -f ./target/.rustc_info.json matrix: @@ -14,6 +16,7 @@ matrix: script: - rustup component add rustfmt - rustup component add rust-src + - printf "\n\n[profile.dev]\ndebug = false\nopt-level = 1\n" >> Cargo.toml - cargo test --no-run # let's measure compile time separately - cargo test env: -- cgit v1.2.3