You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
725 B
22 lines
725 B
# Configure and run code checks |
|
|
|
include: '.gitlab-ci/utils.yml' |
|
|
|
# Custom checks and lints |
|
checks: |
|
stage: check |
|
image: "rustlang/rust:nightly-slim" |
|
script: |
|
- hooks/checks.sh --verbose --force-install |
|
|
|
# Lint the code |
|
cargo-clippy: |
|
extends: |
|
- .remove_build_only_modules |
|
stage: check |
|
image: 'quay.io/gnome_infrastructure/gnome-runtime-images:gnome-master' |
|
tags: |
|
- flatpak |
|
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}
|
|
|