Add pre-push Git hooks [ci skip]
This commit is contained in:
parent
2f24cf7235
commit
1dc9058117
7
tools/scripts/git-hooks/init.sh
Executable file
7
tools/scripts/git-hooks/init.sh
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
mkdir -p "$PWD/.git/hooks"
|
||||
|
||||
ln -sf "$PWD/tools/scripts/git-hooks/pre-push.sh" "$PWD/.git/hooks/pre-push"
|
6
tools/scripts/git-hooks/pre-push.sh
Executable file
6
tools/scripts/git-hooks/pre-push.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
bin/phpcs
|
||||
bin/phpstan analyze
|
Loading…
Reference in a new issue