feature: Added pre-commit git script to support failing fast

This commit is contained in:
Tony Murray
2017-01-24 15:37:49 -06:00
committed by Neil Lathwood
parent 97c5b771e6
commit 839dd31093
2 changed files with 38 additions and 17 deletions

5
scripts/git-pre-commit-hook.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/usr/bin/env sh
# Call pre-commit.php with options that work well when used as a git pre-commit hook
SCRIPT_DIR=`dirname "$(readlink -f "$0")"`
${SCRIPT_DIR}/pre-commit.php --lint --style --unit --fail-fast