.gitlab-ci.yml
changeset 31 5493d31336da
parent 26 995f4bedcf47
equal deleted inserted replaced
30:6ee76a196289 31:5493d31336da
    51     stage: quality
    51     stage: quality
    52     allow_failure: true
    52     allow_failure: true
    53     script:
    53     script:
    54         - pip install pylint-exit anybadge
    54         - pip install pylint-exit anybadge
    55         - mkdir ./pylint
    55         - mkdir ./pylint
    56         - ./bin/pylint src/pyams_apm/ | tee ./pylint/pylint.log || pylint-exit $?
    56         - ./bin/pylint src/pyams_zmq/ | tee ./pylint/pylint.log || pylint-exit $?
    57         - PYLINT_SCORE=$(sed -n 's/^Your code has been rated at \([-0-9.]*\)\/.*/\1/p' ./pylint/pylint.log)
    57         - PYLINT_SCORE=$(sed -n 's/^Your code has been rated at \([-0-9.]*\)\/.*/\1/p' ./pylint/pylint.log)
    58         - anybadge --label=Pylint --file=./pylint/pylint.svg --value=$PYLINT_SCORE 2=red 4=orange 8=yellow 10=green
    58         - anybadge --label=Pylint --file=./pylint/pylint.svg --value=$PYLINT_SCORE 2=red 4=orange 8=yellow 10=green
    59         - echo "Pylint score is $PYLINT_SCORE"
    59         - echo "Pylint score is $PYLINT_SCORE"
    60     artifacts:
    60     artifacts:
    61         paths:
    61         paths: