[fractal/fractal-next] ci: Add clippy



commit beb38f341437d6b0a8853b484cf5a169e86aa03b
Author: Marcus Behrendt <marcus behrendt 86 gmail com>
Date:   Fri Jan 14 22:50:42 2022 +0100

    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:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]