aboutsummaryrefslogtreecommitdiff
path: root/deploy.sh
diff options
context:
space:
mode:
authorPeter Körner2016-10-12 09:35:01 +0200
committerPeter Körner2016-10-12 09:35:01 +0200
commitade5db5f8280cd356ece3d9a59e6a56f00794391 (patch)
tree2e37da0730edb357cbe2f42bbc0d859bdaf500bd /deploy.sh
parent1bf0241f242d919887d3f73c65a4b840f5074da5 (diff)
lint php-files before deploying
Diffstat (limited to 'deploy.sh')
-rwxr-xr-xdeploy.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/deploy.sh b/deploy.sh
index a723ce8..2e1b822 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -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