From 65fc86c78438420d64f43c92fb7e24386d801aaa Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Wed, 6 Oct 2021 12:38:25 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 266f029..7cd9906 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,14 +23,13 @@ pylint: stage: stage-1 script: - python3.9 -m pip install pylint pylint-exit anybadge - - mkdir ./pylint - python3.9 -m pylint --output-format=text asyncdb | tee ./pylint/pylint.log || pylint-exit "${?}" - PYLINT_SCORE="$(sed -n 's/^Your code has been rated at \([-0-9.]*\)\/.*/\1/p' ./pylint/pylint.log)" - - anybadge --label=Pylint --file=pylint/pylint.svg --value="${PYLINT_SCORE}" 2=red 4=orange 8=yellow 10=green + - anybadge --label=Pylint --file=pylint.svg --value="${PYLINT_SCORE}" 2=red 4=orange 8=yellow 10=green - echo "Pylint score is ${PYLINT_SCORE}" artifacts: paths: - - ./pylint/ + - pylint.svg