Add clippy to CI

This commit is contained in:
Heiko Schaefer 2022-03-06 15:20:37 +01:00
parent 0d2bf91676
commit b16d657070
No known key found for this signature in database
GPG key ID: 4A849A1904CCBD7D

View file

@ -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