2018-10-16 02:01:33 +08:00
|
|
|
cache: cargo
|
2018-10-21 04:33:45 +08:00
|
|
|
before_cache:
|
2018-12-29 18:31:20 +08:00
|
|
|
- find ./target/debug -type f -maxdepth 1 -delete
|
|
|
|
- rm -fr ./target/debug/{deps,.fingerprint}/{*ra_*,*test*,*tools*,*gen_lsp*,*thread_worker*}
|
|
|
|
- rm -f ./target/.rustc_info.json
|
2018-10-21 04:33:45 +08:00
|
|
|
|
2018-11-07 03:43:08 +08:00
|
|
|
build: &rust_build
|
2018-12-29 18:31:20 +08:00
|
|
|
language: rust
|
|
|
|
rust: 1.31.1
|
|
|
|
script:
|
2019-01-11 05:46:32 +08:00
|
|
|
- rustup component add rustfmt
|
2019-01-11 05:48:36 +08:00
|
|
|
- rustup component add rust-src
|
2018-12-29 18:31:20 +08:00
|
|
|
- cargo gen-tests --verify
|
|
|
|
- cargo gen-syntax --verify
|
2019-01-04 00:10:45 +08:00
|
|
|
- cargo test --no-run # let's measure compile time separately
|
2018-12-29 18:49:40 +08:00
|
|
|
- cargo test
|
2018-12-29 18:31:20 +08:00
|
|
|
env:
|
2018-12-31 04:48:35 +08:00
|
|
|
- RUSTFLAGS="-D warnings", CARGO_INCREMENTAL=0
|
2018-11-07 03:43:08 +08:00
|
|
|
|
2018-01-28 07:31:23 +08:00
|
|
|
matrix:
|
2018-12-29 18:31:20 +08:00
|
|
|
include:
|
|
|
|
- os: linux
|
|
|
|
<<: *rust_build
|
|
|
|
- language: node_js
|
|
|
|
node_js: node
|
|
|
|
before_script: false
|
|
|
|
script:
|
|
|
|
- cd editors/code && npm ci && npm run travis
|
2018-01-28 08:23:05 +08:00
|
|
|
|
2018-12-29 18:31:20 +08:00
|
|
|
- os: windows
|
2019-01-04 00:15:05 +08:00
|
|
|
if: branch = master AND type = push
|
2018-12-29 18:31:20 +08:00
|
|
|
before_script:
|
|
|
|
- dos2unix ./crates/ra_syntax/tests/data/parser/**/*.txt
|
|
|
|
- dos2unix ./crates/ra_syntax/tests/data/parser/**/*.rs
|
|
|
|
<<: *rust_build
|
2018-11-18 21:36:57 +08:00
|
|
|
|
2018-12-29 18:31:20 +08:00
|
|
|
allow_failures:
|
|
|
|
# Because Travis-Windows-Rust can be flaky
|
|
|
|
# We still support Windows and want the tests to be succeeding,
|
|
|
|
# but there are too many spurious failures
|
|
|
|
- os: windows
|
2018-08-25 18:58:46 +08:00
|
|
|
|
2018-01-28 08:23:05 +08:00
|
|
|
branches:
|
2018-12-29 18:31:20 +08:00
|
|
|
only:
|
|
|
|
- staging
|
|
|
|
- master
|
|
|
|
- trying
|