mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
feature: Added pre-commit git script to support failing fast
This commit is contained in:
committed by
Neil Lathwood
parent
97c5b771e6
commit
839dd31093
5
scripts/git-pre-commit-hook.sh
Executable file
5
scripts/git-pre-commit-hook.sh
Executable 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
|
Reference in New Issue
Block a user