ci: Add clippy

This commit is contained in:
Marcus Behrendt 2022-01-14 22:50:42 +01:00
parent 659f060dca
commit beb38f3414

View file

@ -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: