[librsvg: 1/2] Enable clippy on the CI
- From: Jordan Petridis <jpetridis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 1/2] Enable clippy on the CI
- Date: Tue, 1 Sep 2020 17:29:01 +0000 (UTC)
commit e7d846d7f81214a9b3ed477d43435d2c9929c503
Author: Sven Neumann <sven svenfoo org>
Date: Thu Aug 27 17:22:14 2020 +0200
Enable clippy on the CI
Use the openSUSE Tumbleweed image to run clippy.
.gitlab-ci.yml | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 54214be1..f814cae6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -16,8 +16,6 @@ variables:
RUSTC_1_27: "registry.gitlab.gnome.org/gnome/librsvg-oci-images/rustc:1.27"
RUSTC_1_28: "registry.gitlab.gnome.org/gnome/librsvg-oci-images/rustc:1.28"
- CLIPPY_NIGHTLY: "registry.gitlab.gnome.org/gnome/librsvg-oci-images/clippy:nightly"
-
stages:
- test
- lint
@@ -150,8 +148,8 @@ debian_i386:testing:
# STAGE 1 LINTS
########################################################################
-# Configure and run rustfmt on nightly
-# Exits and builds fails on bad format
+# Configure and run rustfmt
+# Exits and build fails on bad format
rustfmt:
image: $AMD64_OPENSUSE_TUMBLEWEED
stage: lint
@@ -160,16 +158,15 @@ rustfmt:
- cargo fmt --version
- sudo cargo fmt --all -- --check
-# Configure and run clippy on nightly
+# Configure and run clippy
# Only fails on errors atm.
clippy:
- image: $CLIPPY_NIGHTLY
+ image: $AMD64_OPENSUSE_TUMBLEWEED
stage: lint
script:
- rustc --version && cargo --version
- - cargo install clippy --force
- - cargo clippy --all
- when: manual
+ - cargo clippy --version
+ - sudo cargo clippy --all
tarball:
image: $AMD64_OPENSUSE_TUMBLEWEED
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]