diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ce19f75c97de8850b85970fe83f12fcff0c906ba..5a7ba5ab0534030861403cedf5ef52bf455ad926 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,6 +8,7 @@ before_script:
   - python -m pip install --upgrade pip
   - python --version
   - pip install pytest pytest-cov sphinx furo numpydoc pytest-xvfb pytest-qt setuptools_scm sphinx-qt-documentation pytest-xdist
+  - export CPPFLAGS='--coverage'
   - pip install .
   - pip show b_asic
 
@@ -21,6 +22,8 @@ before_script:
         coverage_report:
           coverage_format: cobertura
           path: cov.xml
+  coverage: /(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/
+
 
 run-test-3.8:
   image: python:3.8