diff options
| author | Rémi Oudin | 2018-09-18 13:36:44 +0200 |
|---|---|---|
| committer | Rémi Oudin | 2018-10-12 17:07:56 +0200 |
| commit | f1552b2ccbeb0df9a8954b3454f82bf7ba182fae (patch) | |
| tree | bb3af3992632cec5dc48e0732580a2651421896e | |
| parent | 2ba38dd2a18ab57ed7aac7ccdd6a42ff5e4d4eb7 (diff) | |
Make testsuite fail if coverage is under 100%
Fixes issue #61
| -rw-r--r-- | .gitlab-ci.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 29e3553..4f0a140 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml | |||
| @@ -44,7 +44,7 @@ tests:debian: | |||
| 44 | - apt-get -qqy update | 44 | - apt-get -qqy update |
| 45 | - apt-get -qqy install --no-install-recommends python3-mutagen python3-gi-cairo gir1.2-poppler-0.18 gir1.2-gdkpixbuf-2.0 libimage-exiftool-perl python3-coverage | 45 | - apt-get -qqy install --no-install-recommends python3-mutagen python3-gi-cairo gir1.2-poppler-0.18 gir1.2-gdkpixbuf-2.0 libimage-exiftool-perl python3-coverage |
| 46 | - python3-coverage run --branch -m unittest discover -s tests/ | 46 | - python3-coverage run --branch -m unittest discover -s tests/ |
| 47 | - python3-coverage report -m --include 'libmat2/*' | 47 | - python3-coverage report --fail-under=100 -m --include 'libmat2/*' |
| 48 | 48 | ||
| 49 | tests:fedora: | 49 | tests:fedora: |
| 50 | image: fedora | 50 | image: fedora |
