| `PHP_UNIT_DISABLED` | Set to `true` to disable PHPUnit test (if some `phpunit.xml` or `phpunit.xml.dist` file unintentionally triggers the build) | _none_ (auto based on presence of `phpunit.xml` or `phpunit.xml.dist` file) |
This job:
* generates JUnit test reports with [GitLab integration](https://docs.gitlab.com/ee/ci/junit_test_reports.html),
* computes [code coverage](https://phpunit.readthedocs.io/en/latest/code-coverage-analysis.html) with [GitLab integration](https://docs.gitlab.com/ee/ci/yaml/#coverage).
:warning: in order to be able to compute [code coverage](https://phpunit.readthedocs.io/en/latest/code-coverage-analysis.html),
your project shall have a (dev) dependency to [`php-code-coverage`](https://github.com/sebastianbergmann/php-code-coverage).
In addition to a textual report in the console, this job produces the following reports, kept for one day:
You have two options to configure PHP_CodeSniffer for your project:
@@ -99,6 +102,12 @@ You have two options to configure PHP_CodeSniffer for your project:
:bulb: When issues are found, don't hesitate to use [`phpcbf`](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Fixing-Errors-Automatically#using-the-php-code-beautifier-and-fixer)
to automatically fix them. Or even better [php-cs-fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer).
In addition to a textual report in the console, this job produces the following reports, kept for one day:
"description":"PHP_CodeSniffer [options](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Configuration-Options)\n\nEither use this variable or use an [XML configuration file](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage#using-a-default-configuration-file) in your project.",