[gnome-calculator/wip/3v1n0/coverage] gitlab-ci: enable coverage reports



commit 7e65af7abb38f4e876b4f0f9040e08915ecad347
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date:   Tue Sep 11 11:27:16 2018 -0500

    gitlab-ci: enable coverage reports

 .gitlab-ci.yml | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0835b0ee..1365810f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,17 +2,17 @@
   image: ubuntu:rolling
   before_script:
     - apt-get update
-    - apt-get install -q -y --no-install-recommends meson valac gcc gettext itstool libgtk-3-dev 
libgtksourceview-3.0-dev libmpc-dev libmpfr-dev libsoup2.4-dev libxml2-dev
+    - apt-get install -q -y --no-install-recommends meson valac gcc gettext itstool libgtk-3-dev 
libgtksourceview-3.0-dev libmpc-dev libmpfr-dev libsoup2.4-dev libxml2-dev lcov
 
 .before_script_template: &fedora_before_script
   image: fedora:latest
   before_script:
-    - dnf install -y meson vala itstool gtk3-devel gtksourceview3-devel libmpc-devel mpfr-devel 
libsoup-devel libxml2-devel
+    - dnf install -y meson vala itstool gtk3-devel gtksourceview3-devel libmpc-devel mpfr-devel 
libsoup-devel libxml2-devel lcov
 
 .build_template: &meson_build
   stage: build
   script:
-    - meson _build .
+    - meson _build . -Db_coverage=true
     - ninja -C _build install
   artifacts:
     paths:
@@ -23,6 +23,7 @@
   stage: test
   script:
     - ninja -C _build test
+    - ninja -C _build coverage-html
 
 build:fedora:
   <<: *fedora_before_script


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]