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

Testing linting and unit-test reporting

parent 592f0567
Branches
No related tags found
4 merge requests!10WIP: Add typehint checking,!9WIP: Capture PHPUnit reports,!6add linting,!5WIP: Add JUnit reporting
Pipeline #361 passed
This commit is part of merge request !10. Comments created here will be created in the context of that merge request.
...@@ -24,26 +24,38 @@ before_script: ...@@ -24,26 +24,38 @@ before_script:
- composer global require automattic/vipwpcs - composer global require automattic/vipwpcs
- phpcs --config-set installed_paths $HOME/.composer/vendor/wp-coding-standards/wpcs,$HOME/.composer/vendor/automattic/vipwpcs - phpcs --config-set installed_paths $HOME/.composer/vendor/wp-coding-standards/wpcs,$HOME/.composer/vendor/automattic/vipwpcs
PHPunit:PHP7.0:MySQL: test_7.0:
image: containers.ethitter.com:443/docker/images/php:7.0 image: containers.ethitter.com:443/docker/images/php:7.0
services: services:
- mysql:5.6 - mysql:5.6
script: script:
- find . -type "f" -iname "*.php" | xargs -L "1" php -l
- phpcs -n - phpcs -n
- phpunit - phpunit
artifacts:
reports:
junit: /tmp/wordpress-tests-lib/tests/phpunit/build/logs/junit.xml
PHPunit:PHP7.1:MySQL: test_7.1:
image: containers.ethitter.com:443/docker/images/php:7.1 image: containers.ethitter.com:443/docker/images/php:7.1
services: services:
- mysql:5.6 - mysql:5.6
script: script:
- find . -type "f" -iname "*.php" | xargs -L "1" php -l
- phpcs -n - phpcs -n
- phpunit - phpunit
artifacts:
reports:
junit: /tmp/wordpress-tests-lib/tests/phpunit/build/logs/junit.xml
PHPunit:PHP7.2:MySQL: test_7.2:
image: containers.ethitter.com:443/docker/images/php:7.2 image: containers.ethitter.com:443/docker/images/php:7.2
services: services:
- mysql:5.6 - mysql:5.6
script: script:
- find . -type "f" -iname "*.php" | xargs -L "1" php -l
- phpcs -n - phpcs -n
- phpunit - phpunit
artifacts:
reports:
junit: /tmp/wordpress-tests-lib/tests/phpunit/build/logs/junit.xml
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment