.gitlab-ci.yml
branchdev-tf
changeset 417 e7e36ec88a06
parent 416 0ef63dbfecd1
child 418 55fc762a7afa
equal deleted inserted replaced
416:0ef63dbfecd1 417:e7e36ec88a06
    24         - ./bin/buildout
    24         - ./bin/buildout
    25 
    25 
    26 test:
    26 test:
    27     stage: test
    27     stage: test
    28     script:
    28     script:
    29         - pwd
       
    30         - ls -l
       
    31         - head ./bin/test
       
    32         - ./bin/test
    29         - ./bin/test
    33 
    30 
    34 dist:
    31 dist:
    35     stage: dist
    32     stage: dist
    36     script:
    33     script:
    41 
    38 
    42 pylint:
    39 pylint:
    43     stage: quality
    40     stage: quality
    44     allow_failure: true
    41     allow_failure: true
    45     script:
    42     script:
    46         - pip install pylint-exit anybadge
       
    47         - mkdir ./pylint
    43         - mkdir ./pylint
    48         - ./bin/pylint src/pyams_utils/ | tee ./pylint/pylint.log || pylint-exit $?
    44         - ./bin/pylint src/pyams_utils/ | tee ./pylint/pylint.log || ./bin/pylint-exit $?
    49         - PYLINT_SCORE=$(sed -n 's/^Your code has been rated at \([-0-9.]*\)\/.*/\1/p' ./pylint/pylint.log)
    45         - PYLINT_SCORE=$(sed -n 's/^Your code has been rated at \([-0-9.]*\)\/.*/\1/p' ./pylint/pylint.log)
    50         - anybadge --label=Pylint --file=./pylint/pylint.svg --value=$PYLINT_SCORE 2=red 4=orange 8=yellow 10=green
    46         - ./bin/anybadge --label=Pylint --file=./pylint/pylint.svg --value=$PYLINT_SCORE 2=red 4=orange 8=yellow 10=green
    51         - echo "Pylint score is $PYLINT_SCORE"
    47         - echo "Pylint score is $PYLINT_SCORE"
    52     artifacts:
    48     artifacts:
    53         paths:
    49         paths:
    54             - ./pylint/
    50             - ./pylint/
    55 
    51