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

Do not build Clippy by default #1477

Merged
merged 2 commits into from
Jun 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 26 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,40 @@ language: rust
dist: xenial
cache:
cargo: false
os:
- linux
- osx
- windows
rust:
- nightly
install:
- rustup component add rustfmt
# Required for Racer autoconfiguration
- rustup component add rust-src
- rustup component add rust-analysis
matrix:
fast_finish: true
include:
- os: linux
- os: osx
- os: windows
- env: CLIPPY=true
if: commit_message =~ /(?i:^update.*\b(clippy)\b)/
script:
# Since the rls-* subcrates use crates.io-based dependencies of themselves it
# makes sense to test them in isolation rather than just RLS itself
- (cd rls-analysis && cargo test -v && cargo fmt -- --check)
- (cd rls-blacklist && cargo test -v && cargo fmt -- --check)
- (cd rls-data && cargo test -v && cargo fmt -- --check)
- (cd rls-rustc && cargo test -v && cargo fmt -- --check)
- (cd rls-span && cargo test -v && cargo fmt -- --check)
- (cd rls-vfs && cargo test -v && cargo fmt -- --check)
- cargo fmt -- --check
- cargo build -v
- cargo test -v
- cargo test test_tooltip_std -- --ignored
- |
if [ ${CLIPPY} = true ]; then
cargo build -v --features "clippy"
cargo test -v --features "clippy"
else
# Since the rls-* subcrates use crates.io-based dependencies of themselves it
# makes sense to test them in isolation rather than just RLS itself
(cd rls-analysis && cargo test -v && cargo fmt -- --check)
(cd rls-blacklist && cargo test -v && cargo fmt -- --check)
(cd rls-data && cargo test -v && cargo fmt -- --check)
(cd rls-rustc && cargo test -v && cargo fmt -- --check)
(cd rls-span && cargo test -v && cargo fmt -- --check)
(cd rls-vfs && cargo test -v && cargo fmt -- --check)
cargo fmt -- --check
cargo build -v
cargo test -v
cargo test test_tooltip_std -- --ignored
fi

env:
global:
Expand Down
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,4 @@ tokio-timer = "0.2"
rustc_tools_util = "0.1.1"

[features]
default = ["clippy"]
clippy = ["clippy_lints"]