aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml65
1 files changed, 35 insertions, 30 deletions
diff --git a/.travis.yml b/.travis.yml
index 5e11cbd2f..183409acd 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,42 +1,47 @@
1cache: cargo 1cache: cargo
2before_cache: 2before_cache:
3 - find ./target/debug -type f -maxdepth 1 -delete 3 - find ./target/debug -type f -maxdepth 1 -delete
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
7env: 7env:
8 - CARGO_INCREMENTAL=0 8 - CARGO_INCREMENTAL=0
9 9
10build: &rust_build 10build: &rust_build
11 language: rust 11 language: rust
12 rust: 1.31.1 12 rust: 1.31.1
13 script: 13 script:
14 - cargo gen-tests --verify 14 - cargo gen-tests --verify
15 - cargo gen-syntax --verify 15 - cargo gen-syntax --verify
16 - cargo test 16 - cargo test
17 env:
18 - RUSTFLAGS="-D warnings"
17 19
18matrix: 20matrix:
19 include: 21 include:
20 - os: linux 22 - os: linux
21 <<: *rust_build 23 <<: *rust_build
22 - language: node_js 24 - language: node_js
23 node_js: node 25 node_js: node
24 before_script: false 26 before_script: false
25 script: 27 script:
26 - cd editors/code && npm ci && npm run travis 28 - cd editors/code && npm ci && npm run travis
27 29
28 - os: windows 30 - os: windows
29 if: branch = master 31 if: branch = master
30 before_script: 32 before_script:
31 - dos2unix ./crates/ra_syntax/tests/data/parser/**/*.txt 33 - dos2unix ./crates/ra_syntax/tests/data/parser/**/*.txt
32 - dos2unix ./crates/ra_syntax/tests/data/parser/**/*.rs 34 - dos2unix ./crates/ra_syntax/tests/data/parser/**/*.rs
33 <<: *rust_build 35 <<: *rust_build
34 36
35 allow_failures: 37 allow_failures:
36 - os: windows 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
37 42
38branches: 43branches:
39 only: 44 only:
40 - staging 45 - staging
41 - master 46 - master
42 - trying 47 - trying