From 4ce27c130b764b0d8c510f649a07af0a445a30ac Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Fri, 9 Nov 2018 18:44:26 +0200 Subject: [PATCH] CI: Add a clippy job Uses stable clippy for the time being Otherwise we'll get warnings about lint names being deprecated without being able to fix it while still being able to compile on stable. This will solve itself once the new lint names move to stable and we can switch to them. --- .gitlab-ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 887309e4a..6072511d6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,7 @@ stages: - "lint" - "test" + - "extras" .tarball_setup: &setup variables: @@ -74,3 +75,12 @@ rustfmt: - rustup component add rustfmt - cargo fmt --version - cargo fmt -- --color=always --check + +clippy: + image: "rust:slim" + stage: 'extras' + <<: *setup + script: + - rustup component add clippy-preview + - cargo clippy --version + - cargo clippy --color=always --all --all-features