From 9ece46d32f461cd124fa918f285d0b360bb5f22c Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 2 Apr 2014 19:52:47 -0400 Subject: [PATCH] use the virtualenv python so pylint checks against its installed libs --- jenkins-build | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/jenkins-build b/jenkins-build index a5219f2f..281aa1d4 100755 --- a/jenkins-build +++ b/jenkins-build @@ -76,11 +76,13 @@ set +e # Module 'sys' has no '_MEIPASS' member # disable F0401 until there is a plugin to handle this properly: # keysync-gui:25: [F] Unable to import 'ordereddict' -pylint --output-format=parseable --reports=n \ +# use the virtualenv python so pylint checks against its installed libs +python /usr/bin/pylint --output-format=parseable --reports=n \ 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: -#[ $(($? & 1)) = "1" ] && exit 1 -#[ $(($? & 2)) = "2" ] && exit 2 +[ $(($? & 1)) = "1" ] && echo "FATALs found" +[ $(($? & 2)) = "2" ] && echo "ERRORs found" +[ $(($? & 4)) = "4" ] && echo "WARNINGs found" set -e -- 2.30.2