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

Commit a2dcd69

Browse files
authored
Merge pull request #1477 from mati865/clippy
Do not build Clippy by default
2 parents 7ec4b12 + 2d347df commit a2dcd69

File tree

2 files changed

+26
-17
lines changed

2 files changed

+26
-17
lines changed

.travis.yml

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,40 @@ language: rust
22
dist: xenial
33
cache:
44
cargo: false
5-
os:
6-
- linux
7-
- osx
8-
- windows
95
rust:
106
- nightly
117
install:
128
- rustup component add rustfmt
139
# Required for Racer autoconfiguration
1410
- rustup component add rust-src
1511
- rustup component add rust-analysis
12+
matrix:
13+
fast_finish: true
14+
include:
15+
- os: linux
16+
- os: osx
17+
- os: windows
18+
- env: CLIPPY=true
19+
if: commit_message =~ /(?i:^update.*\b(clippy)\b)/
1620
script:
17-
# Since the rls-* subcrates use crates.io-based dependencies of themselves it
18-
# makes sense to test them in isolation rather than just RLS itself
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
26-
- cargo build -v
27-
- cargo test -v
28-
- cargo test test_tooltip_std -- --ignored
21+
- |
22+
if [ ${CLIPPY} = true ]; then
23+
cargo build -v --features "clippy"
24+
cargo test -v --features "clippy"
25+
else
26+
# Since the rls-* subcrates use crates.io-based dependencies of themselves it
27+
# 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-blacklist && cargo test -v && cargo fmt -- --check)
30+
(cd rls-data && cargo test -v && cargo fmt -- --check)
31+
(cd rls-rustc && cargo test -v && cargo fmt -- --check)
32+
(cd rls-span && cargo test -v && cargo fmt -- --check)
33+
(cd rls-vfs && cargo test -v && cargo fmt -- --check)
34+
cargo fmt -- --check
35+
cargo build -v
36+
cargo test -v
37+
cargo test test_tooltip_std -- --ignored
38+
fi
2939
3040
env:
3141
global:

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,4 @@ tokio-timer = "0.2"
7777
rustc_tools_util = "0.1.1"
7878

7979
[features]
80-
default = ["clippy"]
8180
clippy = ["clippy_lints"]

0 commit comments

Comments
 (0)