mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fix CQ Reports
Strip out badge creation for now until it can fit with pipelines
This commit is contained in:
parent
88eebac6fe
commit
0e1237c0f4
@ -51,20 +51,9 @@ pylint:
|
|||||||
- if: "$CODE_QUALITY_DISABLED"
|
- if: "$CODE_QUALITY_DISABLED"
|
||||||
when: never
|
when: never
|
||||||
- if: "$CI_COMMIT_TAG || $CI_COMMIT_BRANCH"
|
- if: "$CI_COMMIT_TAG || $CI_COMMIT_BRANCH"
|
||||||
before_script:
|
|
||||||
- mkdir -p public/badges public/lint
|
|
||||||
- echo undefined > public/badges/$CI_JOB_NAME.score
|
|
||||||
script:
|
script:
|
||||||
- pylint --exit-zero --output-format=text $(find -type f -name "*.py" ! -path "**/.venv/**" ! -path "**/app/migrations/**") | tee /tmp/pylint.txt
|
- pylint --exit-zero --load-plugins=pylint_gitlab --output-format=gitlab-codeclimate:codeclimate.json $(find -type f -name "*.py" ! -path "**/.venv/**" ! -path "**/app/migrations/**")
|
||||||
- sed -n 's/^Your code has been rated at \([-0-9.]*\)\/.*/\1/p' /tmp/pylint.txt > public/badges/$CI_JOB_NAME.score
|
|
||||||
- pylint --exit-zero --output-format=pylint_gitlab.GitlabCodeClimateReporter $(find -type f -name "*.py" ! -path "**/.venv/**" ! -path "**/app/migrations/**") > codeclimate.json
|
|
||||||
after_script:
|
|
||||||
- anybadge --overwrite --label $CI_JOB_NAME --value=$(cat public/badges/$CI_JOB_NAME.score) --file=public/badges/$CI_JOB_NAME.svg 4=red 6=orange 8=yellow 10=green
|
|
||||||
- |
|
|
||||||
echo "Your score is: $(cat public/badges/$CI_JOB_NAME.score)"
|
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
|
||||||
- public
|
|
||||||
reports:
|
reports:
|
||||||
codequality: codeclimate.json
|
codequality: codeclimate.json
|
||||||
when: always
|
when: always
|
||||||
|
Loading…
Reference in New Issue
Block a user