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