This repository has been archived by the owner on Jul 7, 2023. It is now read-only.
forked from endlessm/mogwai
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
60 lines (53 loc) · 1.45 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
image: debian:unstable
before_script:
- apt update -qq
- apt install -y -qq build-essential meson pkg-config gtk-doc-tools
libxml2-utils gobject-introspection
libgirepository1.0-dev libglib2.0-dev libsystemd-dev
libsoup-3.0-dev libnm-dev lcov python3-dbusmock
git gettext libelf-dev libmount-dev libpcre3-dev
libselinux1-dev zlib1g-dev libffi-dev systemd
- export LANG=C.UTF-8
stages:
- build
- deploy
cache:
paths:
- _ccache/
debian-unstable:
stage: build
except:
- tags
script:
# FIXME: Enable --werror once we don't have glib-2.0 as a subproject
- meson --buildtype debug -Db_coverage=true _build .
- meson test -C _build --no-suite glib-2.0
- ninja -C _build coverage
coverage: '/^\s+lines\.+:\s+([\d.]+\%)\s+/'
artifacts:
when: always
name: "mogwai-${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
dist-job:
stage: build
only:
- tags
script:
- meson --buildtype release _build .
- ninja -C _build dist
artifacts:
paths:
- "${CI_PROJECT_DIR}/_build/meson-dist/mogwai-*.tar.xz"
pages:
stage: deploy
only:
- main
script:
- mkdir -p public/
- mv _build/meson-logs/coveragereport/ public/coverage/
artifacts:
paths:
- public