diff options
-rw-r--r-- | .travis.yml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml index e5960ebca..8ac01171f 100644 --- a/.travis.yml +++ b/.travis.yml | |||
@@ -1,7 +1,9 @@ | |||
1 | cache: cargo | 1 | cache: cargo |
2 | before_cache: | 2 | before_cache: |
3 | - find ./target/debug -maxdepth 1 -type f -delete | 3 | # ask Cargo to clean up artifacts for workspace crates |
4 | - rm -fr ./target/debug/{deps,.fingerprint}/{*ra_*,*test*,*gen_lsp*,*thread_worker*} | 4 | - cargo clean $(printf -- '--package %s ' $(cd crates; ls)) |
5 | # Cargo doesn't clean up depinfo itself, do it manually | ||
6 | - find ./target/debug -maxdepth 2 -iname '*.d' -delete | ||
5 | - rm -f ./target/.rustc_info.json | 7 | - rm -f ./target/.rustc_info.json |
6 | 8 | ||
7 | matrix: | 9 | matrix: |
@@ -14,6 +16,7 @@ matrix: | |||
14 | script: | 16 | script: |
15 | - rustup component add rustfmt | 17 | - rustup component add rustfmt |
16 | - rustup component add rust-src | 18 | - rustup component add rust-src |
19 | - printf "\n\n[profile.dev]\ndebug = false\nopt-level = 1\n" >> Cargo.toml | ||
17 | - cargo test --no-run # let's measure compile time separately | 20 | - cargo test --no-run # let's measure compile time separately |
18 | - cargo test | 21 | - cargo test |
19 | env: | 22 | env: |