I'm trying to setup the coverage badge in my project written in PHP, but it always remain as unknown
. My current settings are:
1. .gitlab-ci.yml
test job:
php_unit:
stage: Test
image: $PHP_FPM_ALPINE_IMAGE
tags:
- docker
except:
- tags
when: on_success
<<: *backend_cache_config
<<: *backend_before_script
script:
- phpdbg -qrr vendor/bin/phpunit --coverage-text --colors=never
coverage: '/^\s*Lines:\s*\d+.\d+\%/'
2. Test coverage regex set in Settings > CI/CD > General Pipelines:
3. Badge configuration in Settings > General > Badges
Even with this settings, the badge stay as unknown
. I've tried some of the things below, but with no success:
- GitLab Code Coverage Badge Not Showing
- Gitlab coverage badge always unknow
- Coverage badge in gitlab is unknown
- Gitlab Coverage badge not working
Any ideas?