-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.gitlab-ci.yml
78 lines (70 loc) · 1.85 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
include:
- project: 'gnome/citemplates'
file: 'flatpak/flatpak_ci_initiative.yml'
variables:
MANIFEST_PATH: 'examples/sm.puri.Handy.Demo.json'
FLATPAK_MODULE: 'libhandy'
FLATPAK_BUILD_DIR: build
stages:
- build
- publish
api-visibility:
stage: build
before_script: []
script:
- ./.gitlab-ci/api-visibility.sh
doc:
image: fedora:37
stage: build
variables:
MESON_ARGS: >-
-Dexamples=false
-Dgtk_doc=true
-Dtests=false
-Dvapi=false
before_script:
- dnf -y update
- dnf -y install gcc git gobject-introspection-devel gtk3-devel meson pip
- pip install Jinja2 packaging pygments toml typogrify
script:
- meson --prefix=/app ${MESON_ARGS} _build
- ninja -C _build
- mv _build/doc/libhandy-1 _doc/
artifacts:
paths:
- _doc
build-flatpak:
extends: '.flatpak'
stage: build
before_script: []
variables:
RUNTIME_REPO: 'https://nightly.gnome.org/gnome-nightly.flatpakrepo'
APP_ID: 'sm.puri.Handy.Demo'
BUNDLE: 'sm.puri.Handy.Demo.flatpak'
build-flatpak-glade:
extends: '.flatpak'
stage: build
before_script: []
variables:
MANIFEST_PATH: 'glade/sm.puri.Handy.Glade.json'
RUNTIME_REPO: 'https://nightly.gnome.org/gnome-nightly.flatpakrepo'
APP_ID: 'sm.puri.Handy.Glade'
BUNDLE: 'sm.puri.Handy.Glade.flatpak'
abi-check:
image: fedora:37
stage: build
variables:
LAST_ABI_BREAK: "b90b5120c5e9e3f5a3b0d228bd7ddb24f053289a"
before_script:
- dnf -y update
- dnf -y install gcc gobject-introspection-devel git gtk3-devel libabigail meson vala
script:
- ./.gitlab-ci/check-abi ${LAST_ABI_BREAK} $(git rev-parse HEAD)
refresh-doc:
image: fedora
stage: publish
only:
refs:
- 'main'
script:
- "curl -X POST -F token=${PAGES_TRIGGER_TOKEN} -F ref=pages https://gitlab.gnome.org/api/v4/projects/11489/trigger/pipeline"