[Git][noosfero/noosfero][exposing-code-quality-report] Shortening json and adding stage to push it to GL pages

Álax Alves gitlab at mg.gitlab.com
Thu Aug 22 11:24:47 BRT 2019



Álax Alves pushed to branch exposing-code-quality-report at Noosfero / noosfero


Commits:
623b32ae by Alax Alves at 2019-08-22T14:24:17Z
Shortening json and adding stage to push it to GL pages

- - - - -


1 changed file:

- .gitlab-ci.yml


Changes:

=====================================
.gitlab-ci.yml
=====================================
@@ -26,6 +26,7 @@ stages:
   - test-plugins
   - code-quality
   - build
+  - deploy
 
 .cache: &cache
   cache:
@@ -158,6 +159,7 @@ rubocop:
   allow_failure: true
 
 code_quality:
+  stage: code-quality
   image: docker:stable
   variables:
     DOCKER_DRIVER: overlay2
@@ -172,14 +174,28 @@ code_quality:
       --volume "$PWD":/code
       --volume /var/run/docker.sock:/var/run/docker.sock
       "registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
+    - cat gl-code-quality-report.json | docker run -i stedolan/jq -c 
+      'map({check_name,fingerprint,location})|unique_by({fingerprint})' > codeclimate.json`
   artifacts:
     paths:
-      - gl-code-quality-report.json
+      - codeclimate.json
     reports:
-      codequality: gl-code-quality-report.json
-  stage: code-quality
+      codequality: codeclimate.json
   only:
-    - tags
+    - exposing-code-quality-report
+
+pages:
+  stage: deploy
+  dependencies:
+    - code_quality
+  script:
+    - cat codeclimate.json
+  #artifacts:
+  #  paths:
+  #    - public
+  #  expire_in: 30 days
+  only:
+    - exposing-code-quality-report
 
 build_image:
   image: docker:stable



View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/623b32aef4d64e4c0b347c4848fea43e63a658fd

-- 
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/623b32aef4d64e4c0b347c4848fea43e63a658fd
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20190822/9eebf252/attachment-0001.html>


More information about the Noosfero-dev mailing list