rust/.travis.yml

48 lines
1.1 KiB
YAML
Raw Normal View History

2018-10-15 20:01:33 +02:00
cache: cargo
2018-10-20 22:33:45 +02:00
before_cache:
- find ./target/debug -type f -maxdepth 1 -delete
2018-12-20 18:00:14 +01:00
- rm -fr ./target/debug/{deps,.fingerprint}/{*ra_*,*test*,*tools*,*gen_lsp*,*thread_worker*}
- rm -f ./target/.rustc_info.json
2018-10-20 22:33:45 +02:00
env:
- CARGO_INCREMENTAL=0
2018-10-15 20:01:33 +02:00
2018-11-06 20:43:08 +01:00
build: &rust_build
language: rust
2018-12-20 20:57:38 +01:00
rust: 1.31.1
2018-11-06 20:43:08 +01:00
script:
- cargo gen-tests --verify
- cargo gen-syntax --verify
2018-12-29 11:25:53 +01:00
- RUSTFLAGS='-D warnings' cargo test
env:
RUSTFLAGS: '-D warnings'
2018-11-06 20:43:08 +01:00
2018-01-28 00:31:23 +01:00
matrix:
include:
2018-11-06 20:43:08 +01:00
- os: linux
<<: *rust_build
2018-10-08 23:36:47 +02:00
- language: node_js
node_js: node
before_script: false
script:
2018-10-09 18:10:35 +02:00
- cd editors/code && npm ci && npm run travis
2018-01-28 01:23:05 +01:00
- os: windows
if: branch = master
before_script:
- dos2unix ./crates/ra_syntax/tests/data/parser/**/*.txt
- dos2unix ./crates/ra_syntax/tests/data/parser/**/*.rs
<<: *rust_build
2018-11-18 14:36:57 +01:00
allow_failures:
2018-12-29 11:25:53 +01:00
# Because Travis-Windows-Rust can be flaky
# We still support Windows and want the tests to be succeeding,
# but there are too few spurious failures
2018-11-18 14:36:57 +01:00
- os: windows
2018-08-25 12:58:46 +02:00
2018-01-28 01:23:05 +01:00
branches:
only:
- staging
- master
- trying