-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
52 lines (48 loc) · 1.39 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
include:
- project: 'gnome/citemplates'
file: 'flatpak/flatpak_ci_initiative.yml'
- component: gitlab.gnome.org/GNOME/citemplates/release-service@master
inputs:
dist-job-name: "fedora"
tarball-artifact-path: "_build/meson-dist/$CI_PROJECT_NAME-$CI_COMMIT_TAG.tar.xz"
stages:
- build
- pages
- deploy
fedora:
stage: build
image: fedora:latest
script:
- sudo dnf install -y meson cmake git vala sqlite-devel libsoup3-devel gtk4-devel protobuf-c-devel gcovr python3-packaging python3-typogrify gperf valgrind xorg-x11-server-Xvfb dbus-x11
- meson setup _build -Db_coverage=true -Dgtk_doc=true -Dvector_renderer=false
- xvfb-run ninja -C _build test
- mv _build/docs/libshumate-1.0 docs
# run the vector tests
- meson setup _build --reconfigure
- xvfb-run meson test -C _build
- xvfb-run meson test -C _build --setup=valgrind
- ninja -C _build coverage
- mv _build/meson-logs/coveragereport coverage
- meson dist -C _build --no-tests
coverage: '/^\s+lines\.+:\s+([\d.]+\%)\s+/'
artifacts:
paths:
- docs
- coverage
- "_build/meson-dist/*.xz"
reports:
coverage_report:
coverage_format: cobertura
path: _build/meson-logs/coverage.xml
pages:
stage: pages
dependencies:
- fedora
script:
- mv docs/libshumate-1.0 public
- mv coverage public/
artifacts:
paths:
- public
only:
- main