]> git.lizzy.rs Git - rust.git/blobdiff - .travis.yml
Merge #1663
[rust.git] / .travis.yml
index 8ac01171f6c0a3210830256024c51d2006d6c00e..87b546442f70388d160a11407edc86365466cd35 100644 (file)
@@ -1,9 +1,7 @@
 cache: cargo
 before_cache:
-    # 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
+    - find ./target/debug -maxdepth 1 -type f -delete
+    - rm -fr ./target/debug/{deps,.fingerprint}/{*ra_*,*heavy_test*,*gen_lsp*,*thread_worker*}
     - rm -f  ./target/.rustc_info.json
 
 matrix:
@@ -16,7 +14,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
+              - printf "\n\n[profile.dev]\ndebug = false\n" >> Cargo.toml
               - cargo test --no-run  # let's measure compile time separately
               - cargo test
           env:
@@ -43,10 +41,9 @@ matrix:
             - xvfb
           before_install: cd editors/code
           install:
-            - npm install
+            - npm ci
             - npm run vscode:prepublish
           script:
-            - npm ci
             - npm run travis
           env:
             - CXX="g++-4.9", CC="gcc-4.9"