From 2795f0ce35cdc00646696f34a29b069d1deed994 Mon Sep 17 00:00:00 2001
From: Thomas Flori <t.flori@sportradar.com>
Date: Fri, 22 Sep 2023 11:57:35 +0200
Subject: [PATCH] fix phpunit job

---
 .gitlab-ci.yml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 238f413..e33208f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -7,7 +7,7 @@ phpunit:
   needs: []
   parallel:
     matrix:
-      - PHP_VERSION: ['7.4', '8.0', '8.1', '8.2']
+      - PHP_VERSION: ['7.4', '8.0', '8.1']
   image: iras/php-composer:${PHP_VERSION}
   cache:
     key: php-dependencies-${PHP_VERSION}
@@ -17,8 +17,10 @@ phpunit:
     - export COMPOSER_CACHE_DIR=$(pwd)/storage/composer
     # basically we are ignoring the composer.lock in tests
     - composer update --no-interaction --ansi
+    - echo zend_extension=xdebug.so > /etc/php*/conf.d/51_xdebug.ini
+    - echo xdebug.mode=coverage >> /etc/php*/conf.d/51_xdebug.ini
   script:
-    - bin/phpunit -c phpunit.xml --color=always --coverage-text --coverage-clover=build/logs/clover.xml
+    - php -dzend_extension=phpbin/phpunit -c phpunit.xml --color=always --coverage-text --coverage-clover=build/logs/clover.xml
 
 packagist:
   stage: publish
-- 
GitLab