/
.gitlab-ci.yml
60 lines (57 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
53
54
55
56
57
58
59
60
stages:
- build
- test
- deploy
build-gtk3:
image: pksadiq/gtk:alpine-amd64
stage: build
variables:
CCACHE_BASEDIR: "${CI_PROJECT_DIR}"
CCACHE_DIR: "${CCACHE_BASEDIR}/_ccache-gtk3"
MESON_ARGS: "--buildtype=debugoptimized -Dhelp=true -Dgtk_doc=true -Dtracing=true"
script:
- ./new-project.sh gtk3
- cd gee-tasks
- meson ${MESON_ARGS} _build
- ccache --zero-stats
- ninja -C _build
- ccache --show-stats
cache:
key: build-gtk3
paths:
- _ccache-gtk3/
build:
image: pksadiq/gtk:fedora-amd64
stage: build
variables:
CCACHE_BASEDIR: "${CI_PROJECT_DIR}"
CCACHE_DIR: "${CCACHE_BASEDIR}/_ccache-gtk4"
MESON_ARGS: "--buildtype=debugoptimized -Dhelp=true -Dgtk_doc=true -Dtracing=true"
script:
- meson ${MESON_ARGS} -Db_coverage=true _build
- ccache --zero-stats
- meson test -C _build
- ccache --show-stats
- mkdir -p _build/meson-logs/coveragereport
- gcovr --root=_build --html-details --print-summary
-o _build/meson-logs/coveragereport/index.html
coverage: '/^lines:.*\s+(\S+\%).*$/'
cache:
key: build-gtk4
paths:
- _ccache-gtk4/
artifacts:
when: always
paths:
- _build
pages:
image: busybox:1
stage: deploy
script:
- mkdir public
- mv _build/meson-logs/coveragereport ${CI_PROJECT_DIR}/public/coverage
artifacts:
paths:
- public
only:
- master