2020-04-15 14:22:06 +02:00
|
|
|
image: debian:unstable
|
2019-02-26 18:51:09 +01:00
|
|
|
|
|
|
|
before_script:
|
2020-04-15 14:22:06 +02:00
|
|
|
- apt update
|
|
|
|
- apt install -y meson pkg-config gtk-doc-tools libxml2-utils
|
|
|
|
libglib2.0-dev libgirepository1.0-dev libpam0g-dev
|
|
|
|
gettext policykit-1 libpolkit-gobject-1-dev git
|
|
|
|
lcov libgtk-3-dev libaccountsservice-dev libflatpak-dev
|
2020-05-21 17:16:21 +02:00
|
|
|
libglib-testing-0-dev libappstream-glib-dev
|
2019-02-26 18:51:09 +01:00
|
|
|
- export LANG=C.UTF-8
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
- deploy
|
|
|
|
|
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- _ccache/
|
|
|
|
|
2020-04-15 14:22:06 +02:00
|
|
|
debian:
|
2019-02-26 18:51:09 +01:00
|
|
|
stage: build
|
|
|
|
except:
|
|
|
|
- tags
|
|
|
|
script:
|
2020-06-17 22:39:01 +02:00
|
|
|
- meson --buildtype debug --werror -Db_coverage=true -Ddocumentation=true -Dprivileged_group=sudo _build .
|
2019-02-26 18:51:09 +01:00
|
|
|
- meson test -C _build
|
2019-06-13 17:35:09 +02:00
|
|
|
# FIXME: lcov doesn't support gcc9 yet:
|
|
|
|
# https://github.com/linux-test-project/lcov/issues/58
|
|
|
|
- ninja -C _build coverage || true
|
2019-02-26 18:51:09 +01:00
|
|
|
coverage: '/^\s+lines\.+:\s+([\d.]+\%)\s+/'
|
|
|
|
artifacts:
|
|
|
|
when: always
|
|
|
|
name: "malcontent-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
|
|
|
paths:
|
|
|
|
- "_build/meson-logs"
|
|
|
|
|
|
|
|
# FIXME: Run gtkdoc-check when we can. See:
|
|
|
|
# https://github.com/mesonbuild/meson/issues/3580
|
|
|
|
|
|
|
|
pages:
|
|
|
|
stage: deploy
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
script:
|
|
|
|
- mkdir -p public/
|
|
|
|
- mv _build/meson-logs/coveragereport/ public/coverage/
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|