Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit 2c4aef9

Browse files
committed
Enforce formatting
1 parent 914e605 commit 2c4aef9

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.travis.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,20 @@ os:
99
rust:
1010
- nightly
1111
install:
12+
- rustup component add rustfmt
1213
# Required for Racer autoconfiguration
1314
- rustup component add rust-src
1415
- rustup component add rust-analysis
1516
script:
1617
# Since the rls-* subcrates use crates.io-based dependencies of themselves it
1718
# makes sense to test them in isolation rather than just RLS itself
18-
- (cd rls-analysis && cargo test -v)
19-
- (cd rls-blacklist && cargo test -v)
20-
- (cd rls-data && cargo test -v)
21-
- (cd rls-rustc && cargo test -v)
22-
- (cd rls-span && cargo test -v)
23-
- (cd rls-vfs && cargo test -v)
19+
- (cd rls-analysis && cargo test -v && cargo fmt -- --check)
20+
- (cd rls-blacklist && cargo test -v && cargo fmt -- --check)
21+
- (cd rls-data && cargo test -v && cargo fmt -- --check)
22+
- (cd rls-rustc && cargo test -v && cargo fmt -- --check)
23+
- (cd rls-span && cargo test -v && cargo fmt -- --check)
24+
- (cd rls-vfs && cargo test -v && cargo fmt -- --check)
25+
- cargo fmt -- --check
2426
- cargo build -v
2527
- cargo test -v
2628
- cargo test test_tooltip_std -- --ignored

0 commit comments

Comments
 (0)