speedup CI

This commit is contained in:
Aleksey Kladov 2019-07-20 17:08:47 +03:00
parent 6b352ffeb3
commit c8d762ddff

View File

@ -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: