.gitlab-ci.yml
branchdev-tf
changeset 418 55fc762a7afa
parent 417 e7e36ec88a06
child 420 b881e57cf6a5
--- a/.gitlab-ci.yml	Sat Nov 23 01:01:07 2019 +0100
+++ b/.gitlab-ci.yml	Sat Nov 23 01:17:56 2019 +0100
@@ -40,10 +40,11 @@
     stage: quality
     allow_failure: true
     script:
+        - pip install pylint-exit anybadge
         - mkdir ./pylint
-        - ./bin/pylint src/pyams_utils/ | tee ./pylint/pylint.log || ./bin/pylint-exit $?
+        - ./bin/pylint src/pyams_utils/ | tee ./pylint/pylint.log || pylint-exit $?
         - PYLINT_SCORE=$(sed -n 's/^Your code has been rated at \([-0-9.]*\)\/.*/\1/p' ./pylint/pylint.log)
-        - ./bin/anybadge --label=Pylint --file=./pylint/pylint.svg --value=$PYLINT_SCORE 2=red 4=orange 8=yellow 10=green
+        - anybadge --label=Pylint --file=./pylint/pylint.svg --value=$PYLINT_SCORE 2=red 4=orange 8=yellow 10=green
         - echo "Pylint score is $PYLINT_SCORE"
     artifacts:
         paths: