Skip to content

Commit 4a1207c

Browse files
committed
add clippy to the pipelines
1 parent 8280633 commit 4a1207c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

azure-pipelines.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,28 @@ jobs:
6666
variables:
6767
TOOLCHAIN: stable
6868

69+
- job: clippy
70+
pool:
71+
vmImage: ubuntu-16.04
72+
steps:
73+
- template: ci/azure-install-rust.yml
74+
- bash: rustup component add clippy
75+
displayName: "Install clippy"
76+
- bash: cargo clippy --all-targets -- -D warnings
77+
displayName: "Check clippy (cargo)"
78+
- bash: cd crates/cargo-test-macro && cargo clippy --all-targets -- -D warnings
79+
displayName: "Check clippy (cargo-test-macro)"
80+
- bash: cd crates/cargo-test-support && cargo clippy --all-targets -- -D warnings
81+
displayName: "Check clippy (cargo-test-support)"
82+
- bash: cd crates/crates-io && cargo clippy --all-targets -- -D warnings
83+
displayName: "Check clippy (crates-io)"
84+
- bash: cd crates/resolver-tests && cargo clippy --all-targets -- -D warnings
85+
displayName: "Check clippy (resolver-tests)"
86+
- bash: cd crates/cargo-platform && cargo clippy --all-targets -- -D warnings
87+
displayName: "Check clippy (cargo-platform)"
88+
variables:
89+
TOOLCHAIN: beta
90+
6991
- job: resolver
7092
pool:
7193
vmImage: ubuntu-16.04

0 commit comments

Comments
 (0)