]> git.lizzy.rs Git - rust.git/blob - .travis.yml
Reformat .travis.yml (using the vscode prettier extension)
[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*,*thread_worker*}
5     - rm -f  ./target/.rustc_info.json
6
7 env:
8     - CARGO_INCREMENTAL=0
9
10 build: &rust_build
11     language: rust
12     rust: 1.31.1
13     script:
14         - cargo gen-tests --verify
15         - cargo gen-syntax --verify
16         - RUSTFLAGS='-D warnings' cargo test
17     env:
18         RUSTFLAGS: -D warnings
19
20 matrix:
21     include:
22         - os: linux
23           <<: *rust_build
24         - language: node_js
25           node_js: node
26           before_script: false
27           script:
28               - cd editors/code && npm ci && npm run travis
29
30         - os: windows
31           if: branch = master
32           before_script:
33               - dos2unix ./crates/ra_syntax/tests/data/parser/**/*.txt
34               - dos2unix ./crates/ra_syntax/tests/data/parser/**/*.rs
35           <<: *rust_build
36
37     allow_failures:
38         # Because Travis-Windows-Rust can be flaky
39         # We still support Windows and want the tests to be succeeding,
40         # but there are too many spurious failures
41         - os: windows
42
43 branches:
44     only:
45         - staging
46         - master
47         - trying