blob: e13c26cbefaa20c230fabeed84190705de0d9276 (
plain)
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
|
stages:
- build
- coverage
variables:
GIT_SUBMODULE_STRATEGY: recursive
default:
image: registry.source.arknet.ch/fmorgner/turns/ci:latest
build-and-test:
stage: build
before_script:
- weston --no-config --socket=$WAYLAND_DISPLAY --backend=headless &
- export XDG_DATA_DIRS=$(pwd)/ch.arknet.Turns/share:${XDG_DATA_DIRS}
script:
- cmake --preset ci
- cmake --build --preset ci --config $BUILD_TYPE
- cmake --install build --config $BUILD_TYPE
# TODO: Reenable once the settings schemas are back
# - glib-compile-schemas ch.arknet.Turns/share/glib-2.0/schemas
- dbus-run-session -- ctest --preset ci --build-config $BUILD_TYPE
artifacts:
paths:
- ch.arknet.Turns/
- build/**/turns
- build/**/*.gcno
- build/**/*.gcda
- build/**/*.gresource.c
- lib/src/turns-enums.c
- lib/src/turns-enums.h
expire_in: 24 hours
parallel:
matrix:
- BUILD_TYPE:
- RelWithDebInfo
- MinSizeRel
coverage:
stage: coverage
script:
- lcov --config-file .lcovrc --capture --directory $(pwd) --output-file coverage.info
- lcov --config-file .lcovrc --list coverage.info
coverage: '/Total:\|(\d+\.?\d+)\%/'
artifacts:
paths:
- coverage.info
expire_in: 24 hours
needs:
- job: build-and-test
parallel:
matrix:
- BUILD_TYPE: RelWithDebInfo
|