Commit ecae4701 authored by Mohammed Sadiq's avatar Mohammed Sadiq Committed by Guido Gunther

ci: Enable code coverage

GitLab pages isn't supported now. So simply store the artifacts.
parent a41bc827
......@@ -7,15 +7,20 @@ build-debian:
- librem5
- apt-get -y update
- apt-get -y install build-essential libgtk-3-doc
- apt-get -y install build-essential libgtk-3-doc lcov
- apt-get -y build-dep .
stage: build
- export LC_ALL=C.UTF-8
- meson . _build -Dgtk_doc=true --werror
- meson . _build -Dgtk_doc=true -Db_coverage=true --werror
- ninja -C _build
- ninja -C _build meson-libhandy-doc 2>&1 | tee _build/doc/buildlog
# Check gtk-doc did not produce any new warnings
- "! grep -qs 'warning' _build/doc/buildlog"
- xvfb-run ninja -C _build test
- ninja -C _build coverage
coverage: '/^\s+lines\.+:\s+([\d.]+\%)\s+/'
when: always
- _build
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment