.gitlab-ci.yml
changeset 20 21dbcce467f3
parent 16 d479a06e08c4
child 25 68fab7a5494d
equal deleted inserted replaced
19:bf9aae7feb5e 20:21dbcce467f3
    40     stage: quality
    40     stage: quality
    41     allow_failure: true
    41     allow_failure: true
    42     script:
    42     script:
    43         - pip install pylint-exit anybadge
    43         - pip install pylint-exit anybadge
    44         - mkdir ./pylint
    44         - mkdir ./pylint
    45         - ./bin/pylint src/pyams_utils/ | tee ./pylint/pylint.log || pylint-exit $?
    45         - ./bin/pylint src/pyams_apm/ | tee ./pylint/pylint.log || pylint-exit $?
    46         - PYLINT_SCORE=$(sed -n 's/^Your code has been rated at \([-0-9.]*\)\/.*/\1/p' ./pylint/pylint.log)
    46         - PYLINT_SCORE=$(sed -n 's/^Your code has been rated at \([-0-9.]*\)\/.*/\1/p' ./pylint/pylint.log)
    47         - anybadge --label=Pylint --file=./pylint/pylint.svg --value=$PYLINT_SCORE 2=red 4=orange 8=yellow 10=green
    47         - anybadge --label=Pylint --file=./pylint/pylint.svg --value=$PYLINT_SCORE 2=red 4=orange 8=yellow 10=green
    48         - echo "Pylint score is $PYLINT_SCORE"
    48         - echo "Pylint score is $PYLINT_SCORE"
    49     artifacts:
    49     artifacts:
    50         paths:
    50         paths: