Skip to content

Commit

Permalink
Update testing php precommit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
abtris committed Mar 25, 2011
1 parent 15c5561 commit 2bca247
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/.gitignore
@@ -0,0 +1 @@
testrepo
5 changes: 4 additions & 1 deletion tests/runtests.sh → tests/runtestsphp.sh
Expand Up @@ -12,10 +12,13 @@ then
fi
cd ..
cp bad-php.php testrepo/
cd testrepo
git add .
git commit -m "Add bad php file"
if [ $? -eq 0 ]
then
echo "Error in precommit bad php file!"
exit -1;
fi
fi
cd ..
exit 0

0 comments on commit 2bca247

Please sign in to comment.