From 708841f9f54369ce11730666ee3f3b7521a0fa71 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 3 Oct 2021 19:52:45 +0200 Subject: [PATCH] Fix the coverage --- .gitlab-ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7dd8eb4..6163117 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -56,9 +56,11 @@ tests:archlinux: tests:debian: image: $CONTAINER_REGISTRY:debian stage: test + <<: *prepare_env script: - apt-get -qqy purge bubblewrap - - python3 -m unittest discover -v + - su - mat2 -c "python3-coverage run --branch -m unittest discover -s tests/" + - su - mat2 -c "python3-coverage report --fail-under=95 -m --include 'libmat2/*'" tests:debian_with_bubblewrap: image: $CONTAINER_REGISTRY:debian @@ -66,8 +68,8 @@ tests:debian_with_bubblewrap: allow_failure: true <<: *prepare_env script: - - su - mat2 -c "python3-coverage run --branch -m unittest discover -s tests/" - - su - mat2 -c "python3-coverage report --fail-under=95 -m --include 'libmat2/*'" + - apt-get -qqy install bubblewrap + - python3 -m unittest discover -v tests:fedora: image: $CONTAINER_REGISTRY:fedora