]> git.lizzy.rs Git - rust.git/blob - .travis.yml
Merge #215
[rust.git] / .travis.yml
1 cache: cargo
2 before_cache:
3   - find ./target/debug -type f -maxdepth 1 -delete
4   - rm -fr ./target/debug/{deps,.fingerprint}/{*ra_*,*test*,*tools*,*gen_lsp*}
5   - rm -f  ./target/.rustc_info.json
6
7 env:
8   - CARGO_INCREMENTAL=0
9
10 build: &rust_build
11   language: rust
12   rust: beta
13   script:
14     - cargo gen-tests --verify
15     - cargo gen-syntax --verify
16     - cargo test
17
18 matrix:
19   include:
20     - os: linux
21       <<: *rust_build
22     # - language: rust
23     #   rust: nightly
24     #   before_script:
25     #     - rustup component add clippy-preview
26     #     - rustup component add rustfmt-preview
27     #   script:
28     #     - cargo fmt --all -- --check || true
29     #     - cargo clippy
30     - language: node_js
31       node_js: node
32       before_script: false
33       script:
34         - cd editors/code && npm ci && npm run travis
35
36   allow_failures:
37     - os: windows
38       if: branch = master
39       before_script:
40         - dos2unix ./crates/ra_syntax/tests/data/parser/**/*.txt
41         - dos2unix ./crates/ra_syntax/tests/data/parser/**/*.rs
42       <<: *rust_build
43     - rust nightly
44
45 branches:
46   only:
47     - staging
48     - master
49     - trying