From beb38f341437d6b0a8853b484cf5a169e86aa03b Mon Sep 17 00:00:00 2001 From: Marcus Behrendt Date: Fri, 14 Jan 2022 22:50:42 +0100 Subject: [PATCH] ci: Add clippy --- .gitlab-ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c0caf21b..ca4841a7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -38,6 +38,18 @@ rustfmt: - cargo fmt --version - cargo fmt --all -- --color=always --check +cargo-clippy: + image: 'registry.gitlab.gnome.org/gnome/gnome-runtime-images/rust_bundle:master' + stage: test + tags: + - flatpak + variables: + MANIFEST_PATH: "build-aux/org.gnome.FractalNext.Devel.json" + FLATPAK_MODULE: "fractal" + script: + - flatpak-builder --keep-build-dirs --user --disable-rofiles-fuse --stop-at=${FLATPAK_MODULE} flatpak_app --repo=repo ${BRANCH:+--default-branch=$BRANCH} ${MANIFEST_PATH} + - echo "cargo clippy -- -D warnings" | flatpak-builder --disable-rofiles-fuse --build-shell=${FLATPAK_MODULE} flatpak_app ${MANIFEST_PATH} + pages: image: "ghcr.io/gtk-rs/gtk4-rs/gtk4:latest" variables: