.gitlab-ci.yml
changeset 19 270c209df927
parent 14 b1ad46aa2d16
child 21 7dcd342f35be
equal deleted inserted replaced
18:d58d443e3683 19:270c209df927
    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_template/ | 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: