jenkins-build: make pylint handle the hashlib hash classes properly

hashlib uses some magic to load whatever is built into the local openssl.
pylint gets confused by this, so we need a pylint plugin to trick pylint
into thinking everything is good.
This commit is contained in:
Hans-Christoph Steiner 2014-04-02 19:53:53 -04:00
parent c353a69231
commit e9dc2ddd51
2 changed files with 43 additions and 6 deletions

View file

@ -72,13 +72,11 @@ pyflakes fdroid makebuildserver fdroidserver/*.py setup.py
cd $WORKSPACE
set +e
# disable E1101 until there is a plugin to handle this properly:
# 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'
# 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
PYTHONPATH=$WORKSPACE/.pylint-plugins python /usr/bin/pylint \
--output-format=parseable --reports=n \
--load-plugins astng_hashlib \
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" ] && echo "FATALs found"