From: Andrew Dolgov Date: Wed, 26 Apr 2017 18:15:23 +0000 (+0300) Subject: ci scripts: exit properly on failure X-Git-Tag: 17.12~222^2~1 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=87267ce355188422c783f6b8e58c5f8850984985;p=tt-rss.git ci scripts: exit properly on failure --- diff --git a/utils/gitlab-ci/php-lint.sh b/utils/gitlab-ci/php-lint.sh index 172abd87..9bd513f8 100644 --- a/utils/gitlab-ci/php-lint.sh +++ b/utils/gitlab-ci/php-lint.sh @@ -1,3 +1,5 @@ -#!/bin/sh -e +#!/bin/sh + +set -e exec find . -name "*.php" -not -path "*/lib/*" -print0 | xargs -0 -n1 php -l diff --git a/utils/gitlab-ci/phpmd.sh b/utils/gitlab-ci/phpmd.sh index 117be184..4ff5daf7 100644 --- a/utils/gitlab-ci/phpmd.sh +++ b/utils/gitlab-ci/phpmd.sh @@ -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 -