[librsvg: 1/2] Introduce code quality metrics to MRs




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]