#!/bin/sh -e

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