From f64cc22d920dfad5775b9c16a7edbcb82bcc0e7e Mon Sep 17 00:00:00 2001 From: Jonathan Swaelens <swaelens.jonathan@opensides.be> Date: Tue, 19 Sep 2017 17:47:40 +0200 Subject: [PATCH] :ambulance: feat(gitlab-ci) Use another command for php lint check Use xargs for php lint check so that the job will fail at the first error closes #5693 Signed-off-by: Jonathan Swaelens <swaelens.jonathan@opensides.be> --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7cfa77f77..ce263d82f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -27,4 +27,4 @@ create_php_code_sniffer_rapport: # PHP lint create_php_lint_rapport: script: - - find . -type f -name '*.php' -o -name '*.inc' -exec php -l "{}" \; + - find . -type f -name '*.php' -o -name '*.inc' -print0 | xargs -0 -n1 php -l -- GitLab