summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjvoisin2021-10-03 19:52:45 +0200
committerjvoisin2021-10-03 19:57:44 +0200
commit708841f9f54369ce11730666ee3f3b7521a0fa71 (patch)
tree57b9157cc8e808075093ced1891979f73ab824c8
parentd4479d9baa8e5383d16c19c34ef534a2c396cc12 (diff)
Fix the coverage
-rw-r--r--.gitlab-ci.yml8
1 files 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:
56tests:debian: 56tests:debian:
57 image: $CONTAINER_REGISTRY:debian 57 image: $CONTAINER_REGISTRY:debian
58 stage: test 58 stage: test
59 <<: *prepare_env
59 script: 60 script:
60 - apt-get -qqy purge bubblewrap 61 - apt-get -qqy purge bubblewrap
61 - python3 -m unittest discover -v 62 - su - mat2 -c "python3-coverage run --branch -m unittest discover -s tests/"
63 - su - mat2 -c "python3-coverage report --fail-under=95 -m --include 'libmat2/*'"
62 64
63tests:debian_with_bubblewrap: 65tests:debian_with_bubblewrap:
64 image: $CONTAINER_REGISTRY:debian 66 image: $CONTAINER_REGISTRY:debian
@@ -66,8 +68,8 @@ tests:debian_with_bubblewrap:
66 allow_failure: true 68 allow_failure: true
67 <<: *prepare_env 69 <<: *prepare_env
68 script: 70 script:
69 - su - mat2 -c "python3-coverage run --branch -m unittest discover -s tests/" 71 - apt-get -qqy install bubblewrap
70 - su - mat2 -c "python3-coverage report --fail-under=95 -m --include 'libmat2/*'" 72 - python3 -m unittest discover -v
71 73
72tests:fedora: 74tests:fedora:
73 image: $CONTAINER_REGISTRY:fedora 75 image: $CONTAINER_REGISTRY:fedora