5
5
rust :
6
6
- nightly
7
7
install :
8
- - rustup component add rustfmt
8
+ # Use last well-known nightly for Rustfmt
9
+ - rustup toolchain install nightly-2019-08-01
10
+ - rustup component add rustfmt --toolchain nightly-2019-08-01
9
11
# Required for Racer autoconfiguration
10
12
- rustup component add rust-src
11
13
- rustup component add rust-analysis
@@ -19,18 +21,18 @@ matrix:
19
21
if : commit_message =~ /(?i:^update.*\b(clippy)\b)/
20
22
script :
21
23
- |
22
- if [ ${CLIPPY} = true ]; then
24
+ if [ " ${CLIPPY}" = true ]; then
23
25
cargo build -v --features "clippy"
24
26
cargo test -v --features "clippy"
25
27
else
26
28
# Since the rls-* subcrates use crates.io-based dependencies of themselves it
27
29
# makes sense to test them in isolation rather than just RLS itself
28
- (cd rls-analysis && cargo test -v && cargo fmt -- --check)
29
- (cd rls-data && cargo test -v && cargo fmt -- --check)
30
- (cd rls-rustc && cargo test -v && cargo fmt -- --check)
31
- (cd rls-span && cargo test -v && cargo fmt -- --check)
32
- (cd rls-vfs && cargo test -v && cargo fmt -- --check)
33
- cargo fmt -- --check
30
+ (cd rls-analysis && cargo test -v && cargo +nightly-2019-08-01 fmt -- --check)
31
+ (cd rls-data && cargo test -v && cargo +nightly-2019-08-01 fmt -- --check)
32
+ (cd rls-rustc && cargo test -v && cargo +nightly-2019-08-01 fmt -- --check)
33
+ (cd rls-span && cargo test -v && cargo +nightly-2019-08-01 fmt -- --check)
34
+ (cd rls-vfs && cargo test -v && cargo +nightly-2019-08-01 fmt -- --check)
35
+ cargo +nightly-2019-08-01 fmt -- --check
34
36
cargo build -v
35
37
cargo test -v
36
38
cargo test test_tooltip_std -- --ignored
0 commit comments