#------------------------------------------------------------------------------#
# run local tests
cd $WORKSPACE/tests
-./run-tests
+./run-tests ~jenkins/
#------------------------------------------------------------------------------#
# run tests in new pip+virtualenv install
. $WORKSPACE/env/bin/activate
-fdroid=$WORKSPACE/env/bin/fdroid $WORKSPACE/tests/run-tests
+fdroid=$WORKSPACE/env/bin/fdroid $WORKSPACE/tests/run-tests ~jenkins/
#------------------------------------------------------------------------------#
-# run pyflakes
-pyflakes fdroid makebuildserver fdroidserver/*.py setup.py
+# run git pre-commit hook for pep8, pyflakes, etc
+sh hooks/pre-commit
#------------------------------------------------------------------------------#