- rm -fr ./target/debug/{deps,.fingerprint}/{*ra_*,*test*,*tools*,*gen_lsp*,*thread_worker*}
- rm -f ./target/.rustc_info.json
-env:
- - CARGO_INCREMENTAL=0
-
build: &rust_build
language: rust
- rust: 1.31.1
+ rust: stable
script:
- - cargo gen-tests --verify
- - cargo gen-syntax --verify
- - RUSTFLAGS='-D warnings' cargo test
+ - rustup component add rustfmt
+ - rustup component add rust-src
+ - cargo test --no-run # let's measure compile time separately
+ - cargo test
env:
- RUSTFLAGS: -D warnings
+ - RUSTFLAGS="-D warnings", CARGO_INCREMENTAL=0
matrix:
include:
- cd editors/code && npm ci && npm run travis
- os: windows
- if: branch = master
+ if: branch = master AND type = push
before_script:
- dos2unix ./crates/ra_syntax/tests/data/parser/**/*.txt
- dos2unix ./crates/ra_syntax/tests/data/parser/**/*.rs