Created
March 18, 2013 13:53
-
-
Save Bouke/5187280 to your computer and use it in GitHub Desktop.
run all tests on pre-push
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
remote="$1" | |
url="$2" | |
while read local_ref local_sha remote_ref remote_sha | |
do | |
if [ "$remote_ref" == "refs/heads/master" ]; then | |
# echo "Pushing to refs/heads/master, running test cases" | |
if [ "$local_ref" == "HEAD" ]; then | |
[virtualenv's]python manage.py test --failfast | |
exit $? | |
else | |
echo "Please push from head `git push origin HEAD:master`" | |
exit 1 | |
fi | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment