Add clippy to CI
This commit is contained in:
parent
0d2bf91676
commit
b16d657070
1 changed files with 12 additions and 0 deletions
|
@ -36,6 +36,18 @@ cargo-fmt:
|
|||
- rustup component add rustfmt
|
||||
- cargo fmt -- --check
|
||||
|
||||
cargo-clippy:
|
||||
stage: lint
|
||||
image: rust:latest
|
||||
before_script:
|
||||
- mkdir -p /run/user/$UID
|
||||
- apt update -y -qq
|
||||
- apt install -y -qq --no-install-recommends git clang make pkg-config nettle-dev libssl-dev capnproto ca-certificates libpcsclite-dev
|
||||
- apt clean
|
||||
script:
|
||||
- rustup component add clippy
|
||||
- cargo clippy --verbose --tests -- -D warnings
|
||||
|
||||
cargo-test:
|
||||
stage: test
|
||||
image: rust:latest
|
||||
|
|
Loading…
Reference in a new issue