2023-02-28 12:09:24 +00:00
|
|
|
phpcs:
|
2023-02-28 12:09:57 +00:00
|
|
|
stage: lint
|
2026-08-21 12:37:08 +02:00
|
|
|
image: composer:2.10
|
2023-02-28 12:09:24 +00:00
|
|
|
before_script:
|
|
|
|
|
- composer config gitlab-token.lab.s-web.fr $CI_DEPLOY_USER $CI_DEPLOY_PASSWORD
|
2023-04-18 09:04:01 +00:00
|
|
|
- composer install --no-scripts
|
2023-02-28 12:09:24 +00:00
|
|
|
script:
|
|
|
|
|
- vendor/bin/phpcs --report=junit --report-file=phpcs-report.xml
|
|
|
|
|
artifacts:
|
|
|
|
|
when: on_failure
|
|
|
|
|
expose_as: 'phpcs'
|
|
|
|
|
paths:
|
|
|
|
|
- phpcs-report.xml
|
|
|
|
|
reports:
|
|
|
|
|
junit: phpcs-report.xml
|
|
|
|
|
allow_failure: false
|
|
|
|
|
rules:
|
|
|
|
|
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|