Skip to content

Instantly share code, notes, and snippets.

@cakper
Created January 29, 2014 16:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cakper/8692118 to your computer and use it in GitHub Desktop.
Save cakper/8692118 to your computer and use it in GitHub Desktop.
PHPSpec GIT pre-commit hook
#!/bin/sh
if [ -f ./bin/phpspec ]
then
./bin/phpspec run --quiet
if [ $? -ne 0 ]
then
echo "PHPSpec has failed - commit aborted"
return 1
fi
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment