Created
August 27, 2015 15:33
-
-
Save ktravis/e037d2215130923134b0 to your computer and use it in GitHub Desktop.
git hook to run tests pre-commit
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
#!/bin/bash | |
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD) | |
RET=0 | |
if [ "$CURRENT_BRANCH" != "gh-pages" ]; then | |
make test | |
RET=$? | |
fi | |
exit $RET |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment