Created
March 11, 2009 21:38
-
-
Save sanity/77763 to your computer and use it in GitHub Desktop.
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
Vegas-2:SenseArray(doubleding) ian$ cat .git/hooks/pre-commit | |
#!/bin/bash | |
# Note that the last command in the script must exit with non-zero return | |
# value for the commit to be aborted | |
echo -n "Running unit tests: " | |
mvn test > /tmp/sa.tests.log && echo "Done." || (cat /tmp/sa.tests.log; say "Unit tests failed, commit aborted"; exit 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment