Update .gitlab-ci.yml file
This commit is contained in:
parent
59a68a5dd4
commit
b0747895c4
@ -24,7 +24,7 @@ pylint:
|
||||
script:
|
||||
- python3.9 -m pip install pylint pylint-exit anybadge
|
||||
- python3.9 -m pylint --output-format=text asyncdb | tee pylint.log || pylint-exit "${?}"
|
||||
- PYLINT_SCORE="$(sed -n 's/^Your code has been rated at \([-0-9.]*\)\/.*/\1/p' ./pylint/pylint.log)"
|
||||
- PYLINT_SCORE="$(sed -n 's/^Your code has been rated at \([-0-9.]*\)\/.*/\1/p' pylint.log)"
|
||||
- anybadge --label=Pylint --file=pylint.svg --value="${PYLINT_SCORE}" 2=red 4=orange 8=yellow 10=green
|
||||
- echo "Pylint score is ${PYLINT_SCORE}"
|
||||
artifacts:
|
||||
|
Loading…
Reference in New Issue
Block a user