From ed255936432a691247c086ab4f731142d3f5d1fc Mon Sep 17 00:00:00 2001 From: Sakri Koskimies Date: Wed, 19 Oct 2022 14:41:22 +0300 Subject: [PATCH] Add phpcompatibility-wp to gitlab template --- templates/plugin-gitlab.mustache | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/templates/plugin-gitlab.mustache b/templates/plugin-gitlab.mustache index 78d1f13d1..59e9f3bba 100644 --- a/templates/plugin-gitlab.mustache +++ b/templates/plugin-gitlab.mustache @@ -5,7 +5,7 @@ variables: before_script: # Install dependencies - + # update the docker - apt-get clean - apt-get -yqq update @@ -22,7 +22,9 @@ before_script: # Install PHPCS and WPCS - composer global require "squizlabs/php_codesniffer=*" - composer global require "wp-coding-standards/wpcs" - - phpcs --config-set installed_paths $HOME/.composer/vendor/wp-coding-standards/wpcs + - composer global require "phpcompatibility/phpcompatibility-wp" + - vendor="$HOME/.composer/vendor" + - phpcs --config-set installed_paths "$vendor/wp-coding-standards/wpcs,$vendor/phpcompatibility/php-compatibility,$vendor/phpcompatibility/phpcompatibility-paragonie,$vendor/phpcompatibility/phpcompatibility-wp" PHPunit:PHP5.3:MySQL: image: tetraweb/php:5.3 @@ -39,7 +41,7 @@ PHPunit:PHP5.6:MySQL: script: - phpcs - phpunit - + PHPunit:PHP7.0:MySQL: image: tetraweb/php:7.0 services: