Skip to content
Snippets Groups Projects
Commit 5084cc8a authored by Erick Hitter's avatar Erick Hitter
Browse files

Fix how PHPCS is run

parent 5da20dcb
Branches add/scaffolding
No related tags found
1 merge request!5Revise test matrix
Pipeline #888 passed with stages
in 3 minutes and 9 seconds
...@@ -21,11 +21,6 @@ before_script: ...@@ -21,11 +21,6 @@ before_script:
composer global require "phpunit/phpunit=4.8.*" composer global require "phpunit/phpunit=4.8.*"
fi fi
# Install PHPCS and WPCS
- composer global require automattic/vipwpcs
- 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
PHP5.3: PHP5.3:
stage: test stage: test
image: containers.ethitter.com:443/docker/images/php:5.3 image: containers.ethitter.com:443/docker/images/php:5.3
...@@ -88,9 +83,18 @@ PHP7.3: ...@@ -88,9 +83,18 @@ PHP7.3:
- mysql:5.6 - mysql:5.6
script: script:
- find . -type "f" -iname "*.php" | xargs -L "1" php -l - find . -type "f" -iname "*.php" | xargs -L "1" php -l
- phpcs -n
- phpunit - phpunit
PHPCS:
stage: test
image: containers.ethitter.com:443/docker/images/php:7.3
before_script:
- composer global require automattic/vipwpcs
- 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
script:
- phpcs -n
PluginSVN: PluginSVN:
stage: deploy stage: deploy
image: containers.ethitter.com:443/docker/wp-org-plugin-deploy:latest image: containers.ethitter.com:443/docker/wp-org-plugin-deploy:latest
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment