blob: 22165c6609c506b96af077d74d42e179d35018fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
jobs:
- job: ${{ parameters.name }}
displayName: Clippy
pool:
vmImage: ubuntu-16.04
steps:
- template: azure-install-rust.yml
parameters:
rust: ${{ parameters.rust }}
- script: |
set +e
if rustup component add clippy; then
set -e
else
set -e
target=`curl https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/clippy`
echo "'clippy' is unavailable on the toolchain '${{ parameters.rust }}', use the toolchain 'nightly-$target' instead"
rustup toolchain install nightly-$target
rustup default nightly-$target
rustup component add clippy
rustup toolchain list
rustc -Vv
cargo -V
fi
cargo clippy --version
displayName: rustup component add clippy
- script: cargo clippy --all --all-features
displayName: cargo clippy --all-features
|