]> git.wh0rd.org Git - tt-rss.git/commitdiff
ci scripts: exit properly on failure
authorAndrew Dolgov <noreply@fakecake.org>
Wed, 26 Apr 2017 18:15:23 +0000 (21:15 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Wed, 26 Apr 2017 18:15:23 +0000 (21:15 +0300)
utils/gitlab-ci/php-lint.sh
utils/gitlab-ci/phpmd.sh

index 172abd873150ba789e508329060eca12fcfe9d6d..9bd513f88499cad2164f9810ee2e6998897b2a3b 100644 (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
index 117be184815861ad57bb0cc0cc040ceabab937b5..4ff5daf764f4264fa6df27b6734aac89c1ee27ac 100644 (file)
@@ -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
-