From 4c9d3b793c6d36d32e17703c6a2e67546628dba5 Mon Sep 17 00:00:00 2001 From: Jonathan Swaelens <swaelens.jonathan@opensides.be> Date: Wed, 28 Feb 2018 15:27:29 +0100 Subject: [PATCH] :sparkles: feat(gitlab-ci): Add stage for php lint in jessie and stretch Add stage for php lint in jessie and stretch Signed-off-by: Jonathan Swaelens <swaelens.jonathan@opensides.be> --- .gitlab-ci.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 69906fd51..ed6f56059 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,6 +7,8 @@ variables: stages: - test-perl + - test-php-jessie + - test-php-stretch - test-php - test-manpages - transifex @@ -69,15 +71,23 @@ create_php_code_sniffer_rapport: - find . -type f -name '*.php' -o -name '*.inc' > ./filelist - phpcs --standard=../dev-tools/php-codesniffer-rules/FDStandard/ruleset.xml --file-list=./filelist -# PHP lint +# PHP lint (jessie) create_php_lint_rapport: - stage: test-php + image: 5.6.33-cli-jessie + stage: test-php-jessie + only: + - branches + - tags + script: + - find . -type f -name '*.php' -o -name '*.inc' -print0 | xargs -0 -n1 php -l + +# PHP lint (stretch) +create_php_lint_rapport: + image: 5.6.33-cli-stretch + stage: test-php-stretch only: - branches - tags - before_script: - - apt-get update -qq - - apt-get install -y -qq php-cli script: - find . -type f -name '*.php' -o -name '*.inc' -print0 | xargs -0 -n1 php -l -- GitLab