[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:18:35 BRT 2019
Álax Alves pushed to branch exposing-code-quality-report at Noosfero / noosfero
Commits:
88cc024a by Alax Alves at 2019-08-22T14:18: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,12 +174,26 @@ 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
+
+pages:
+ stage: deploy
+ dependencies:
+ - code_quality
+ script:
+ - cat codeclimate.json
+ #artifacts:
+ # paths:
+ # - public
+ # expire_in: 30 days
only:
- tags
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/88cc024af6b2c3817a868194d7eff869812bd41e
--
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/88cc024af6b2c3817a868194d7eff869812bd41e
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/9b815864/attachment-0001.html>
More information about the Noosfero-dev
mailing list