-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
62 lines (56 loc) · 1.47 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
include:
- 'https://source.puri.sm/Librem5/librem5-ci/raw/master/librem5-pipeline-definitions.yml'
- 'https://source.puri.sm/Librem5/librem5-ci/raw/master/librem5-pipeline-byzantium-jobs.yml'
stages:
- build
- test
- package
- test-package
.tags: &tags
tags:
- librem5
before_script:
- export DEBIAN_FRONTEND=noninteractive
- apt-get -y update
build-pureos-gcc-byzantium:
<<: *tags
image: pureos/byzantium
stage: build
script:
- apt-get -y build-dep .
- apt-get -y install libgtk-3-bin xvfb
- export LC_ALL=C.UTF-8
- meson . _build -Db_coverage=true --werror
- ninja -C _build
artifacts:
paths:
- _build
test:debian-gcc:
<<: *tags
stage: test
image: pureos/byzantium
dependencies:
- build-pureos-gcc-byzantium
script:
- apt-get -y build-dep .
- apt-get -y install libgtk-3-bin xvfb lcov
- export G_DEBUG=fatal-warnings
- export LC_ALL=C.UTF-8
- xvfb-run -a -s "-screen 0 1024x768x24" ninja -C _build test
- ninja -C _build coverage
coverage: '/^\s+lines\.+:\s+([\d.]+\%)\s+/'
check-po:
<<: *tags
stage: test
image: debian:bullseye
dependencies:
- build-pureos-gcc-byzantium
before_script:
- apt-get -y update
- apt-get -y install intltool
script:
# barf on untranslated C files. Seems intltool
# can't be told to exit with non-zero exit status
# in this case
- cd po/
- intltool-update -m 2>&1 | grep -qs '/.*\.c' && { intltool-update -m; exit 1; } || exit 0