ci scripts: exit properly on failure
This commit is contained in:
parent
42b37a0f90
commit
87267ce355
|
@ -1,3 +1,5 @@
|
|||
#!/bin/sh -e
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
exec find . -name "*.php" -not -path "*/lib/*" -print0 | xargs -0 -n1 php -l
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
#!/bin/sh -i -e
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
phpmd include,classes text utils/gitlab-ci/phpmd-ruleset.xml
|
||||
|
||||
FILES=$(ls -dm *.php | tr -d " "| tr -d "\n")
|
||||
phpmd $FILES text utils/gitlab-ci/phpmd-ruleset.xml
|
||||
|
||||
|
|
Loading…
Reference in New Issue