# HG changeset patch # User Thierry Florac # Date 1574467267 -3600 # Node ID e7e36ec88a0671b3a78481018c94415c726090b6 # Parent 0ef63dbfecd19c1d721c27b4fadefd4c78a4c9cb Updated buildout diff -r 0ef63dbfecd1 -r e7e36ec88a06 .gitlab-ci.yml --- a/.gitlab-ci.yml Sat Nov 23 00:33:56 2019 +0100 +++ b/.gitlab-ci.yml Sat Nov 23 01:01:07 2019 +0100 @@ -26,9 +26,6 @@ test: stage: test script: - - pwd - - ls -l - - head ./bin/test - ./bin/test dist: @@ -43,11 +40,10 @@ stage: quality allow_failure: true script: - - pip install pylint-exit anybadge - mkdir ./pylint - - ./bin/pylint src/pyams_utils/ | tee ./pylint/pylint.log || pylint-exit $? + - ./bin/pylint src/pyams_utils/ | tee ./pylint/pylint.log || ./bin/pylint-exit $? - PYLINT_SCORE=$(sed -n 's/^Your code has been rated at \([-0-9.]*\)\/.*/\1/p' ./pylint/pylint.log) - - anybadge --label=Pylint --file=./pylint/pylint.svg --value=$PYLINT_SCORE 2=red 4=orange 8=yellow 10=green + - ./bin/anybadge --label=Pylint --file=./pylint/pylint.svg --value=$PYLINT_SCORE 2=red 4=orange 8=yellow 10=green - echo "Pylint score is $PYLINT_SCORE" artifacts: paths: diff -r 0ef63dbfecd1 -r e7e36ec88a06 buildout.cfg --- a/buildout.cfg Sat Nov 23 00:33:56 2019 +0100 +++ b/buildout.cfg Sat Nov 23 01:01:07 2019 +0100 @@ -55,7 +55,11 @@ [pylint] recipe = zc.recipe.egg -eggs = pylint +eggs = + pyams_utils + pylint + pylint-exit + anybadge entry-points = pylint=pylint.lint:Run arguments = sys.argv[1:]