For a project hosted at https://www.gitlab.com I would like to configure code coverage in the CI setup so that it can be displayed in the job list

My configuration is as follows:
.gitlab-ci.yml
image: php:7.1.1
cache:
paths:
- vendor/
before_script:
- apt-get update -yqq
- apt-get install git -yqq
- curl -sS https://getcomposer.org/installer | php
- php composer.phar install
test:
only:
- master
- develop
script:
- vendor/bin/phpunit
Job completed successfully but error message is displayed
Error: coverage code driver unavailable

I updated the parameter to parse the test coverage and set the regex to
^\s*Lines:\s*\d+.\d+\%
example for PHP / PHPUnit.
When i run the command
vendor/bin/phpunit
locally, I get the following output:
Code Coverage Report:
2017-06-21 14:52:55
Summary:
Classes: 100.00% (4/4)
Methods: 100.00% (14/14)
Lines: 100.00% (43/43)
\Rodacker\CartExample::Article
Methods: 100.00% ( 6/ 6) Lines: 100.00% ( 11/ 11)
\Rodacker\CartExample::ArticleLoader
Methods: 100.00% ( 2/ 2) Lines: 100.00% ( 21/ 21)
\Rodacker\CartExample::ArticleRepository
Methods: 100.00% ( 3/ 3) Lines: 100.00% ( 6/ 6)
\Rodacker\CartExample::Image
Methods: 100.00% ( 3/ 3) Lines: 100.00% ( 5/ 5)
source
share