rust/.travis.yml

48 lines
1.0 KiB
YAML
Raw Normal View History

2018-10-15 18:01:33 +00:00
cache: cargo
2018-10-20 20:33:45 +00:00
before_cache:
- find ./target/debug -type f -maxdepth 1 -delete
2018-11-06 19:22:22 +00:00
- rm -fr ./target/debug/{deps,.fingerprint}/{*ra_*,*test*}
2018-10-20 20:33:45 +00:00
env:
- CARGO_INCREMENTAL=0
2018-10-15 18:01:33 +00:00
2018-11-06 19:43:08 +00:00
build: &rust_build
language: rust
rust: beta
script:
- cargo gen-tests --verify
- cargo gen-syntax --verify
- cargo test
2018-01-27 23:31:23 +00:00
matrix:
include:
2018-11-06 19:43:08 +00:00
- os: windows
before_script:
- dos2unix ./crates/ra_syntax/tests/data/parser/**/*.txt
- dos2unix ./crates/ra_syntax/tests/data/parser/**/*.rs
<<: *rust_build
- os: linux
<<: *rust_build
2018-10-08 21:36:47 +00:00
# - language: rust
# rust: nightly
# before_script:
# - rustup component add clippy-preview
# - rustup component add rustfmt-preview
# script:
# - cargo fmt --all -- --check || true
# - cargo clippy
2018-10-08 21:36:47 +00:00
- language: node_js
node_js: node
before_script: false
script:
2018-10-09 16:10:35 +00:00
- cd editors/code && npm ci && npm run travis
2018-01-28 00:23:05 +00:00
2018-08-25 10:58:46 +00:00
allow_failures:
- rust nightly
2018-01-28 00:23:05 +00:00
branches:
only:
- staging
- master
- trying