[librsvg: 1/2] Introduce code quality metrics to MRs
- From: Sven Neumann <sneumann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 1/2] Introduce code quality metrics to MRs
- Date: Fri, 30 Oct 2020 09:24:32 +0000 (UTC)
commit 0ee50457f8c866bed7024b6158d6e9a6bf601b4c
Author: Dunja Lalic <dunja lalic gmail com>
Date: Fri Oct 30 09:43:47 2020 +0100
Introduce code quality metrics to MRs
.gitlab-ci.yml | 11 +++++++++++
1 file changed, 11 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9f310fcc..0b5e8a91 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -77,6 +77,17 @@ clippy:
script:
- cargo clippy --version
- sudo -E cargo clippy --workspace
+ after_script:
+ - sudo -E cargo clippy --workspace --message-format=json &> clippy.txt || true
+ - sudo -E /opt/cargo/bin/gitlab-clippy clippy.txt
+ artifacts:
+ reports:
+ codequality: gl-code-quality-report.json
+ expire_in: 1 week
+ rules:
+ - if: '$CODE_QUALITY_DISABLED'
+ when: never
+ - if: '$CI_PIPELINE_SOURCE == "push"'
cargo_test:
stage: unit test
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]