Created
December 18, 2014 13:43
-
-
Save nielk/686cced24384df5eec80 to your computer and use it in GitHub Desktop.
pre-commit test js
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
# pre-commit: run casperjs tests | |
echo "**********************************" | |
echo "pre commit ..." | |
echo "**********************************" | |
if [ -x "$(command -v casperjs)" ]; then | |
echo "**********************************" | |
echo "executing test" | |
echo "**********************************" | |
git stash -q --keep-index | |
casperjs test integration/test/test.js | |
RESULT=$? | |
git stash pop -q | |
[ $RESULT -ne 0 ] && exit 1 | |
exit 0 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment