ci: create rustfmt-clippy

To save precious time, run clippy and fmt in the same
run.
This commit is contained in:
Stéphane Cerveau 2022-01-31 19:38:06 +01:00
parent ec20b318d1
commit 2a1a43ea2f

View file

@ -47,7 +47,7 @@ build-fedora-container:
FDO_DISTRIBUTION_EXEC: >-
pip3 install meson
rustfmt:
rustfmt-clippy:
extends:
- .fedora
- .fdo.distribution-image@fedora
@ -56,6 +56,8 @@ rustfmt:
- meson build
- cargo fmt --version
- cargo fmt -- --color=always --check
- cargo clippy --version
- cargo clippy --color=always --all-targets -- -D warnings
test-stable:
extends:
@ -82,16 +84,6 @@ rustdoc:
- rustdoc --version
- cargo doc --no-deps
clippy:
extends:
- .fedora
- .fdo.distribution-image@fedora
stage: extras
script:
- meson build
- cargo clippy --version
- cargo clippy --color=always --all-targets -- -D warnings
flatpak:
image: "registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:41"
stage: test