-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
104 lines (92 loc) · 2.18 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
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
92
93
94
95
96
97
98
99
100
101
102
103
104
include:
- project: 'guidog/meta-phosh'
ref: '04a85df2f3311f3012b6c49bf353b376ae0f32b2'
file: '/ci/phosh-common-jobs.yml'
- remote: 'https://gitlab.freedesktop.org/freedesktop/ci-templates/-/raw/d03cddbcff35f26861429fc816c00323f48e99af/templates/ci-fairy.yml'
image: debian:trixie
stages:
- build
- tests
- package
- deploy
variables:
DEPS: >-
ccache build-essential git gcovr wget python3-lxml
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
- eatmydata apt-get -y build-dep .
- wget https://snapshot.debian.org/archive/debian/20240130T090818Z/pool/main/g/gcovr/gcovr_7.0-1_all.deb
- dpkg -i gcovr_7.0-1_all.deb && rm -f gcovr_7.0-1_all.deb
.build: &build_steps
echo "BUILD_OPTS=${BUILD_OPTS}" &&
export LC_ALL=C.UTF-8 &&
meson ${BUILD_OPTS} . _build &&
ninja -C _build
build-debian-gcc:
stage: build
variables:
BUILD_OPTS: -Db_coverage=true --werror
script:
- *build_steps
artifacts:
when: always
paths:
- _build
# TODO: move to prebuilt container
doc:
stage: build
variables:
BUILD_OPTS: >-
-Dtests=false
-Dgtk_doc=true
script:
- meson ${BUILD_OPTS} _build
- ninja -C _build
- mv _build/doc/gmobile-0 _doc/
artifacts:
paths:
- _doc/
tests:
stage: tests
variables:
needs: ['build-debian-gcc']
script:
- meson ${BUILD_OPTS} _build
- meson test -C _build
- ninja -C _build coverage
coverage: '/^lines:\s+([\d.]+\%)\s+/'
artifacts:
reports:
junit: _build/meson-logs/testlog.junit.xml
package-deb-debian-trixie:arm64:
stage: package
variables:
PHOSH_DOCKER_IMAGE: debian:trixie
extends: .phosh-build-debian-package
tags:
- aarch64
render-display-info:
stage: tests
variables:
needs: ['build-debian-gcc']
script:
- tools/render-all
artifacts:
expose_as: 'Display panel html'
paths:
- _build/out/
pages:
stage: deploy
before_script: []
needs: ['doc']
script:
- mv _doc/ public/
artifacts:
paths:
- public
only:
- main