Created
December 5, 2013 11:48
-
-
Save Ulv/7804028 to your computer and use it in GitHub Desktop.
git hooks to run phpunit tests for kinetic
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 | |
TEST_GLOB='../../tests/test_*.php' | |
for f in $TEST_GLOB; do | |
printf "\n+ Running 'phpunit `basename ${f}`'\n\n" | |
phpunit $f | |
rc=$? | |
if [[ $rc != 0 ]] ; then | |
printf "\n\nSome tests failed!!!\n" | |
exit $rc | |
fi | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment