From 5384692f21cad51c0af986eb84bbabacd8c33820 Mon Sep 17 00:00:00 2001 From: Thomas Flori <t.flori@sportradar.com> Date: Fri, 22 Sep 2023 16:31:09 +0200 Subject: [PATCH] fix overall coverage --- .gitlab-ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 561d28a..6202f06 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -20,7 +20,8 @@ phpunit: script: - php -dzend_extension=xdebug.so -dxdebug.mode=coverage bin/phpunit -c phpunit.xml --color=always - --coverage-text --coverage-cobertura=storage/logs/cobertura.xml + --coverage-text --coverage-cobertura=storage/logs/cobertura.xml | tee /tmp/phpunit.out + - sed -r 's~\x01?(\x1B\(B)?\x1B\[([0-9;]*)?[JKmsu]\x02?~~g' /tmp/phpunit.out|grep '^ Lines' artifacts: paths: - storage/logs/cobertura.xml @@ -28,7 +29,7 @@ phpunit: coverage_report: coverage_format: cobertura path: storage/logs/cobertura.xml - coverage: '/^\x1b\[[\d;]+m\s*Lines:\s*\d+.\d+\%/' + coverage: '/^\s*Lines:\s*\d+.\d+\%/' packagist: -- GitLab