mirror of
https://github.com/voc/streaming-website
synced 2024-11-10 06:34:17 +00:00
lint php-files before deploying
This commit is contained in:
parent
1bf0241f24
commit
ade5db5f82
1 changed files with 7 additions and 0 deletions
|
@ -1,4 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
find . -name "*.php" -print0 | xargs -0 -n1 php -l
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "not deploying b0rken code ;)"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
ssh voc@lb.dus.c3voc.de 'sudo sh' << EOT
|
||||
cd /srv/nginx/streaming-website
|
||||
git fetch origin
|
||||
|
|
Loading…
Reference in a new issue