From b16d657070eea8d75395d538b8ab0cd8d37e8163 Mon Sep 17 00:00:00 2001 From: Heiko Schaefer Date: Sun, 6 Mar 2022 15:20:37 +0100 Subject: [PATCH] Add clippy to CI --- .gitlab-ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e76ca74..c462493 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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