#!/bin/sh

cd $(git rev-parse --show-toplevel)
find pydebsign -name '*.pyc' -delete
python setup.py test || exit 1
python setup.py check -r || exit 1

pychecker pydebsign/*.py
pychecker pydebsign/tests/*.py
pylint pydebsign
pyflakes pydebsign
pyflakes3 pydebsign
flake8 pydebsign/*

#!/bin/sh

cleanup() {
    find pydebsign -name '*.pyc' -delete
    find pydebsign -name '*~' -delete
}

cd $(git rev-parse --show-toplevel)
cleanup
python setup.py test || exit 1
python setup.py check -r || exit 1

cleanup
pychecker pydebsign/*.py
pychecker pydebsign/tests/*.py

cleanup
pylint pydebsign

cleanup
pyflakes pydebsign

cleanup
pyflakes3 pydebsign

cleanup
flake8 pydebsign/*

Clean up byte code files before execute test tool.
Clean up byte code files before execute test tool.

Signed-off-by: Kouhei Maeda <c9f1823971fa1a4c79cdb50b3311094021cee31e@palmtb.net>
