-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitlab-ci.yml
53 lines (51 loc) · 1.19 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
stages:
- build
- test
- deploy
build:
image: pksadiq/gtk:fedora-amd64
stage: build
variables:
CCACHE_DIR: "${CI_PROJECT_DIR}/_ccache"
MESON_ARGS: "--buildtype=debugoptimized -Dhelp=true -Dgtk_doc=true -Dbash_completion=false"
script:
- CC_LD=mold meson ${MESON_ARGS} -Db_coverage=true _build
- ccache --zero-stats
- ninja -C _build && xvfb-run -a meson test -C _build
- ccache --show-stats
- mkdir -p _build/meson-logs/coveragereport
- gcovr --root=_build --html-details --print-summary
--filter=. --exclude=.*gtkapplication.h --exclude=.*src/resources.c --exclude=.*autocleanups.h
-o _build/meson-logs/coveragereport/index.html
coverage: '/^lines:.*\s+(\S+\%).*$/'
cache:
key: build-gtk4
paths:
- _ccache/
artifacts:
when: always
paths:
- _build
only:
changes:
- data/*
- docs/*
- src/*
- tests/*
- meson*
- .gitlab-ci.yml
pages:
image: busybox:1
stage: deploy
script:
- mkdir public
- mv _build/meson-logs/coveragereport ${CI_PROJECT_DIR}/public/coverage
artifacts:
paths:
- public
only:
- master
only:
changes:
- docs/*
- src/*