Add pre-push Git hooks [ci skip]

This commit is contained in:
Oliver Davies 2021-05-22 14:37:49 +01:00
parent 2f24cf7235
commit 1dc9058117
2 changed files with 13 additions and 0 deletions

View 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"

View file

@ -0,0 +1,6 @@
#!/bin/sh
set -e
bin/phpcs
bin/phpstan analyze