#!/bin/sh

which py.test || exit 1
(
cd $(git rev-parse --show-toplevel)
find shiori -name '*.pyc' -delete
python setup.py test || exit 1
#python3 setup.py test || exit 1
(
pychecker -X -s shiori/*.py || exit 1
pychecker -X -s shiori_tests/*.py || exit 1
)
python setup.py check -r || exit 1
)
