rust/.travis.yml

48 lines
1.3 KiB
YAML
Raw Normal View History

2018-10-15 13:01:33 -05:00
cache: cargo
2018-10-20 15:33:45 -05:00
before_cache:
- 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-20 15:33:45 -05:00
2018-11-06 13:43:08 -06:00
build: &rust_build
language: rust
rust: 1.31.1
script:
2019-01-10 15:46:32 -06:00
- rustup component add rustfmt
2019-01-10 15:48:36 -06:00
- rustup component add rust-src
- cargo gen-tests --verify
- cargo gen-syntax --verify
- cargo test --no-run # let's measure compile time separately
2018-12-29 04:49:40 -06:00
- cargo test
env:
- RUSTFLAGS="-D warnings", CARGO_INCREMENTAL=0
2018-11-06 13:43:08 -06:00
2018-01-27 17:31:23 -06:00
matrix:
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-27 18:23:05 -06:00
- os: windows
2019-01-03 10:15:05 -06:00
if: branch = master AND type = push
before_script:
- dos2unix ./crates/ra_syntax/tests/data/parser/**/*.txt
- dos2unix ./crates/ra_syntax/tests/data/parser/**/*.rs
<<: *rust_build
2018-11-18 07:36:57 -06: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 05:58:46 -05:00
2018-01-27 18:23:05 -06:00
branches:
only:
- staging
- master
- trying