From: Hans-Christoph Steiner Date: Thu, 3 Apr 2014 15:54:08 +0000 (-0400) Subject: enable Jenkins reporting of pylint errors and warnings X-Git-Tag: 0.2~145^2~1 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=5ee4f3d72d772f95c992042becf12adf3a77987b;p=fdroidserver.git 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. --- diff --git a/jenkins-build b/jenkins-build index 7decda4b..81639626 100755 --- a/jenkins-build +++ b/jenkins-build @@ -79,8 +79,10 @@ set +e 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: +# 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" -[ $(($? & 2)) = "2" ] && echo "ERRORs found" -[ $(($? & 4)) = "4" ] && echo "WARNINGs found" +[ $(($? & 2)) = "2" ] && exit 2 +[ $(($? & 4)) = "4" ] && exit 4 set -e