aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml47
1 files changed, 20 insertions, 27 deletions
diff --git a/.travis.yml b/.travis.yml
index ebff7d8b0..4dffdea34 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,43 +4,36 @@ before_cache:
4 - rm -fr ./target/debug/{deps,.fingerprint}/{*ra_*,*test*,*tools*,*gen_lsp*,*thread_worker*} 4 - rm -fr ./target/debug/{deps,.fingerprint}/{*ra_*,*test*,*tools*,*gen_lsp*,*thread_worker*}
5 - rm -f ./target/.rustc_info.json 5 - rm -f ./target/.rustc_info.json
6 6
7build: &rust_build
8 language: rust
9 rust: stable
10 script:
11 - rustup component add rustfmt
12 - rustup component add rust-src
13 - cargo test --no-run # let's measure compile time separately
14 - cargo test
15 - cargo doc --all --no-deps
16 env:
17 - RUSTFLAGS="-D warnings", CARGO_INCREMENTAL=0
18
19matrix: 7matrix:
20 include: 8 include:
21 - os: linux 9 - os: linux
22 before_script: 10 language: rust
11 rust: stable
12 script:
13 - rustup component add rustfmt
14 - rustup component add rust-src
15 - cargo test --no-run # let's measure compile time separately
16 - cargo test
17 env:
18 - RUSTFLAGS="-D warnings", CARGO_INCREMENTAL=0
19
20 - os: linux
21 if: branch = master AND type = push
22 before_stript:
23 - DEPLOY_DOCS=1 23 - DEPLOY_DOCS=1
24 <<: *rust_build 24 language: rust
25 rust: stable
26 script:
27 - cargo doc --all --no-deps
28 env:
29 - RUSTFLAGS="-D warnings", CARGO_INCREMENTAL=0
30
25 - language: node_js 31 - language: node_js
26 node_js: node 32 node_js: node
27 before_script: false 33 before_script: false
28 script: 34 script:
29 - cd editors/code && npm ci && npm run travis 35 - cd editors/code && npm ci && npm run travis
30 36
31 - os: windows
32 if: branch = master AND type = push
33 before_script:
34 - dos2unix ./crates/ra_syntax/tests/data/parser/**/*.txt
35 - dos2unix ./crates/ra_syntax/tests/data/parser/**/*.rs
36 <<: *rust_build
37
38 allow_failures:
39 # Because Travis-Windows-Rust can be flaky
40 # We still support Windows and want the tests to be succeeding,
41 # but there are too many spurious failures
42 - os: windows
43
44branches: 37branches:
45 only: 38 only:
46 - staging 39 - staging