Skip to content
Snippets Groups Projects

Fix PHPCS, for real

Merged Erick Hitter requested to merge fix/phpcs into main
2 files
+ 30
3
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -4,6 +4,8 @@ PHPunit:PHP7.0:MySQL:Redis:
@@ -4,6 +4,8 @@ PHPunit:PHP7.0:MySQL:Redis:
services:
services:
- mysql:5.6
- mysql:5.6
- redis:alpine
- redis:alpine
 
variables:
 
WP_VERSION: 6.5.5
script:
script:
- find . -type "f" -iname "*.php" | xargs -L "1" php -l
- find . -type "f" -iname "*.php" | xargs -L "1" php -l
- phpunit
- phpunit
@@ -14,6 +16,8 @@ PHPunit:PHP7.1:MySQL:Redis:
@@ -14,6 +16,8 @@ PHPunit:PHP7.1:MySQL:Redis:
services:
services:
- mysql:5.6
- mysql:5.6
- redis:alpine
- redis:alpine
 
variables:
 
WP_VERSION: 6.5.5
script:
script:
- find . -type "f" -iname "*.php" | xargs -L "1" php -l
- find . -type "f" -iname "*.php" | xargs -L "1" php -l
- phpunit
- phpunit
@@ -69,13 +73,36 @@ PHPunit:PHP8.1:MySQL:Redis:
@@ -69,13 +73,36 @@ PHPunit:PHP8.1:MySQL:Redis:
- phpunit
- phpunit
allow_failure: true
allow_failure: true
 
PHPunit:PHP8.2:MySQL:Redis:
 
stage: test
 
image: containers.ethitter.com:443/docker/images/php:8.2
 
services:
 
- mysql:5.6
 
- redis:alpine
 
script:
 
- find . -type "f" -iname "*.php" | xargs -L "1" php -l
 
- phpunit
 
allow_failure: true
 
 
PHPunit:PHP8.3:MySQL:Redis:
 
stage: test
 
image: containers.ethitter.com:443/docker/images/php:8.3
 
services:
 
- mysql:5.6
 
- redis:alpine
 
script:
 
- find . -type "f" -iname "*.php" | xargs -L "1" php -l
 
- phpunit
 
allow_failure: true
 
PHPCS:
PHPCS:
stage: test
stage: test
image: containers.ethitter.com:443/docker/images/php:7.4
image: containers.ethitter.com:443/docker/images/php:8.2
before_script:
before_script:
 
- composer global config --no-plugins allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
- composer global require automattic/vipwpcs
- composer global require automattic/vipwpcs
- composer global require phpcompatibility/phpcompatibility-wp
- composer global require phpcompatibility/phpcompatibility-wp
- phpcs --config-set installed_paths $HOME/.composer/vendor/wp-coding-standards/wpcs,$HOME/.composer/vendor/automattic/vipwpcs,$HOME/.composer/vendor/phpcompatibility/php-compatibility,$HOME/.composer/vendor/phpcompatibility/phpcompatibility-paragonie,$HOME/.composer/vendor/phpcompatibility/phpcompatibility-wp,$HOME/.composer/vendor/sirbrillig/phpcs-variable-analysis
- phpcs -i
- phpcs --config-show
- phpcs --config-show
script:
script:
- phpcs -n
- phpcs -n
Loading