.gitlab-ci.yml
branchdev-tf
changeset 418 55fc762a7afa
parent 417 e7e36ec88a06
child 420 b881e57cf6a5
equal deleted inserted replaced
417:e7e36ec88a06 418:55fc762a7afa
    38 
    38 
    39 pylint:
    39 pylint:
    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         - mkdir ./pylint
    44         - mkdir ./pylint
    44         - ./bin/pylint src/pyams_utils/ | tee ./pylint/pylint.log || ./bin/pylint-exit $?
    45         - ./bin/pylint src/pyams_utils/ | tee ./pylint/pylint.log || pylint-exit $?
    45         - 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)
    46         - ./bin/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
    47         - echo "Pylint score is $PYLINT_SCORE"
    48         - echo "Pylint score is $PYLINT_SCORE"
    48     artifacts:
    49     artifacts:
    49         paths:
    50         paths:
    50             - ./pylint/
    51             - ./pylint/
    51 
    52