ci scripts: exit properly on failure

This commit is contained in:
Andrew Dolgov 2017-04-26 21:15:23 +03:00
parent 42b37a0f90
commit 87267ce355
2 changed files with 6 additions and 3 deletions

View file

@ -1,3 +1,5 @@
#!/bin/sh -e #!/bin/sh
set -e
exec find . -name "*.php" -not -path "*/lib/*" -print0 | xargs -0 -n1 php -l exec find . -name "*.php" -not -path "*/lib/*" -print0 | xargs -0 -n1 php -l

View file

@ -1,7 +1,8 @@
#!/bin/sh -i -e #!/bin/sh
set -e
phpmd include,classes text utils/gitlab-ci/phpmd-ruleset.xml phpmd include,classes text utils/gitlab-ci/phpmd-ruleset.xml
FILES=$(ls -dm *.php | tr -d " "| tr -d "\n") FILES=$(ls -dm *.php | tr -d " "| tr -d "\n")
phpmd $FILES text utils/gitlab-ci/phpmd-ruleset.xml phpmd $FILES text utils/gitlab-ci/phpmd-ruleset.xml