.gitlab-ci.yml
changeset 18 25f3738c920e
parent 13 ccb2abb60b46
equal deleted inserted replaced
17:c13c2aa4451d 18:25f3738c920e
    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_viewlet/ | tee ./pylint/pylint.log || pylint-exit $?
    56         - ./bin/pylint src/pyams_pagelet/ | 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: