diff options
author | Aleksey Kladov <[email protected]> | 2019-03-25 07:13:44 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-03-25 07:13:44 +0000 |
commit | db9a3cbfb912260a8c572c926e34c7812b0215df (patch) | |
tree | e56974c40dd0269d93df107681df39e4dc863f19 | |
parent | 219b1573377caafaca1dc071f8513ec8be01f199 (diff) |
Remove windows from CI
We don't actually look at the CI results for windows anyway!
In general, rust-analyzer should be written in a completely
OS-independent way. That is, testing on one OS should be enough. If
this is not the case, that means something is seriously broken.
No doubt there are components which actually talk to the outside
world, and they may be platform dependent. We should extract such
components to a separate repo with an extensive multi platform CI,
like we did for VFS
-rw-r--r-- | .travis.yml | 47 |
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 | ||
7 | build: &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 | |||
19 | matrix: | 7 | matrix: |
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 | |||
44 | branches: | 37 | branches: |
45 | only: | 38 | only: |
46 | - staging | 39 | - staging |