-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
91 lines (81 loc) · 1.84 KB
/
Copy path.gitlab-ci.yml
File metadata and controls
91 lines (81 loc) · 1.84 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
include:
- project: 'guidog/meta-phosh'
ref: '545f3904b42e88618c1344d99d252a023f275967'
file: '/ci/phosh-common-jobs.yml'
stages:
- build
- tests
- deploy
variables:
DIST: trixie
DEPS: >-
ccache build-essential libgtk-4-dev libcallaudio-dev libadwaita-1-dev meson
python3-toml python3-jinja2 python3-typogrify libgirepository1.0-dev git
xvfb gcovr libxml2-utils gi-docgen dbus-x11
before_script:
- echo "man-db man-db/auto-update boolean false" | debconf-set-selections
- export DEBIAN_FRONTEND=noninteractive
- apt-get -y update
- apt-get -y install eatmydata
- eatmydata apt-get -y install $DEPS
.build: &build_steps
echo "BUILD_OPTS=${BUILD_OPTS}" &&
export LC_ALL=C.UTF-8 &&
meson ${BUILD_OPTS} . _build &&
ninja -C _build
build-debian-gcc:
image: debian:trixie
stage: build
variables:
BUILD_OPTS: -Db_coverage=true --werror
script:
- *build_steps
artifacts:
when: always
paths:
- _build
# TODO: move to prebuilt container
doc:
image: debian:trixie
stage: build
variables:
BUILD_OPTS: >-
-Dtests=false
-Dgtk_doc=true
script:
- meson ${BUILD_OPTS} _build
- ninja -C _build
- mv _build/doc/libcall-ui-0 _doc/
artifacts:
paths:
- _doc/
check-po:
stage: tests
extends: .phosh-check-po
check-consistency:
stage: tests
extends: .phosh-check-consistency
tests:
image: debian:trixie
stage: tests
variables:
needs: ['build-debian-gcc']
script:
- meson ${BUILD_OPTS} _build
- xvfb-run meson test -C _build --print-errorlogs
- ninja -C _build coverage
coverage: '/^lines:\s+([\d.]+\%)\s+/'
artifacts:
reports:
junit: _build/meson-logs/testlog.junit.xml
pages:
stage: deploy
before_script: []
needs: ['doc']
script:
- mv _doc/ public/
artifacts:
paths:
- public
only:
- main