forked from GNOME/seahorse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
29 lines (28 loc) · 1.14 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
stages:
- build-flatpak
# We always use flatpak-builder to check if everything still works.
flatpak:master:
image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master
stage: build-flatpak
variables:
MANIFEST_PATH: 'build-aux/org.gnome.Seahorse.json'
BUNDLE: 'seahorse-dev.flatpak'
script:
- flatpak-builder --stop-at=seahorse app ${MANIFEST_PATH}
# Make sure to keep this in sync with the Flatpak manifest, all arguments
# are passed except the config-args because we build it ourselves
- flatpak build app meson --prefix=/app _build
- flatpak build app ninja -C _build install
- flatpak-builder --finish-only --repo=repo app ${MANIFEST_PATH}
# Make a Flatpak Seahorse bundle for people to test
- flatpak build-bundle repo ${BUNDLE} --runtime-repo=https://sdk.gnome.org/gnome-nightly.flatpakrepo org.gnome.seahorse.Application
# - xvfb-run -a -s "-screen 0 1024x768x24" flatpak build app ninja -C _build test
artifacts:
paths:
- ${BUNDLE}
- _build/meson-logs/meson-log.txt
- _build/meson-logs/testlog.txt
expire_in: 2 days
cache:
paths:
- .flatpak-builder/cache