ci: install and enable pcov in tests_laravel job for code coverage

This commit is contained in:
Jérémy Munsch 2026-08-21 16:56:21 +02:00
parent a395037058
commit 0e6aa52f2e
Signed by: forge-joniko
GPG key ID: D7EFE2F5CB6CC0E4

View file

@ -97,7 +97,6 @@ tests_laravel:
image: composer:2.10
allow_failure: false
variables:
XDEBUG_MODE: coverage
COMPOSER_CACHE_DIR: ".composer-cache"
cache:
- key:
@ -109,6 +108,7 @@ tests_laravel:
- .composer-cache/
- vendor/
before_script:
- apk add --no-cache $PHPIZE_DEPS linux-headers && pecl install pcov && docker-php-ext-enable pcov
- composer config gitlab-token.lab.s-web.fr "${CI_DEPLOY_USER}" "${CI_DEPLOY_PASSWORD}"
- composer install --no-interaction --prefer-dist --optimize-autoloader --no-scripts
script: