blob: b10e759da7cd1dbd0de583349b7e6ec993d3b594 (
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
image: registry.gitlab.gnome.org/gnome/libsoup/master:v5
stages:
- build
- coverage
- docs
- deploy
.build:
stage: build
tags:
# We need runners supporting IPv6:
# https://gitlab.gnome.org/Infrastructure/GitLab/issues/313
- ipv6
fedora-meson-x86_64:
extends: .build
variables:
CFLAGS: "-coverage -ftest-coverage -fprofile-arcs"
script:
- meson _build -Dauto_features=enabled
- ninja -C _build
- mkdir -p _coverage
- lcov --config-file .gitlab-ci/lcovrc --directory _build --capture --initial --output-file "_coverage/${CI_JOB_NAME}-baseline.lcov"
- ninja -C _build test
- lcov --config-file .gitlab-ci/lcovrc --directory _build --capture --output-file "_coverage/${CI_JOB_NAME}.lcov"
artifacts:
reports:
junit: "_build/${CI_JOB_NAME}-report.xml"
name: "libsoup-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
when: always
paths:
- "_build/config.h"
- "_build/meson-logs"
- "_build/${CI_JOB_NAME}-report.xml"
- "_coverage"
coverage:
stage: coverage
needs: [fedora-meson-x86_64]
except:
- tags
artifacts:
name: "libsoup-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
paths:
- _coverage/
script:
- bash -x ./.gitlab-ci/coverage-docker.sh
coverage: '/^\s+lines\.+:\s+([\d.]+\%)\s+/'
reference:
stage: docs
variables:
DESTDIR: _install
needs: []
script:
- meson _build -Dgtk_doc=true
# FIXME: ninja -C _build libsoup-3.0-doc fails
- ninja -C _build install
- mv _build/docs/reference/html/ _reference/
- .gitlab-ci/check-docs.py
artifacts:
paths:
- _build/docs/reference/libsoup-3.0-*.txt
- _reference
coverage: '/^([\d]+\%) symbol docs coverage\.\s+/'
pages:
stage: deploy
needs: ['reference']
script:
- mv _reference/ public/
artifacts:
paths:
- public
only:
- master
|