mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
enable Jenkins reporting of pylint errors and warnings
fatals still can not be enabled because of a bug in pylint when running in a virtualenv: https://bitbucket.org/logilab/pylint/issue/73/pylint-is-unable-to-import running pylint in the virtualenv would not be needed once mwclient is packaged for Debian and installed that way.
This commit is contained in:
parent
e9dc2ddd51
commit
5ee4f3d72d
1 changed files with 4 additions and 2 deletions
|
@ -79,8 +79,10 @@ set +e
|
||||||
fdroidserver/*.py fdroid makebuildserver setup.py > $WORKSPACE/pylint.parseable
|
fdroidserver/*.py fdroid makebuildserver setup.py > $WORKSPACE/pylint.parseable
|
||||||
|
|
||||||
# to only tell jenkins there was an error if we got ERROR or FATAL, uncomment these:
|
# to only tell jenkins there was an error if we got ERROR or FATAL, uncomment these:
|
||||||
|
# running pylint in the virtualenv is causing this FATAL error, which is a bug:
|
||||||
|
# https://bitbucket.org/logilab/pylint/issue/73/pylint-is-unable-to-import
|
||||||
[ $(($? & 1)) = "1" ] && echo "FATALs found"
|
[ $(($? & 1)) = "1" ] && echo "FATALs found"
|
||||||
[ $(($? & 2)) = "2" ] && echo "ERRORs found"
|
[ $(($? & 2)) = "2" ] && exit 2
|
||||||
[ $(($? & 4)) = "4" ] && echo "WARNINGs found"
|
[ $(($? & 4)) = "4" ] && exit 4
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue