Created
October 12, 2012 14:51
-
-
Save rfreebern/3879583 to your computer and use it in GitHub Desktop.
Run phpunit tests before allowing a commit
This file contains hidden or 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
#!/usr/bin/env bash | |
git stash -q --keep-index | |
phpunit tests/ | |
RESULT=$? | |
git stash pop -q | |
[ $RESULT -ne 0 ] && exit 1 | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment