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