2023-03-29 22:28:59 +00:00
|
|
|
include:
|
|
|
|
- project: "gnome/citemplates"
|
|
|
|
file: "flatpak/flatpak_ci_initiative.yml"
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- test
|
2023-03-29 22:32:43 +00:00
|
|
|
- docs
|
|
|
|
- deploy
|
2023-03-29 22:28:59 +00:00
|
|
|
|
2023-08-24 12:43:29 +00:00
|
|
|
tests:
|
|
|
|
image: fedora:rawhide
|
|
|
|
stage: test
|
|
|
|
variables:
|
|
|
|
MESON_FLAGS: "-Db_coverage=true -Ddocs=false -Dvapi=false -Dintrospection=disabled"
|
|
|
|
before_script:
|
2024-01-14 14:54:13 +00:00
|
|
|
- sudo dnf install -y git gtk4-devel meson gcc gcovr lcov wget
|
2023-08-24 12:43:29 +00:00
|
|
|
qemu-system-x86 qemu-ui-dbus qemu-ui-opengl
|
2024-01-14 14:54:13 +00:00
|
|
|
dbus-x11 xorg-x11-server-Xvfb python3-packaging
|
2023-08-24 12:43:29 +00:00
|
|
|
script:
|
|
|
|
- meson setup _build
|
|
|
|
- meson configure ${MESON_FLAGS} _build
|
|
|
|
- meson compile -C _build
|
|
|
|
- meson test -C _build --suit "libmks"
|
|
|
|
- cd tests
|
2023-10-12 08:12:28 +00:00
|
|
|
- BUILDDIR=_build dbus-run-session xvfb-run -ad ./functional.sh
|
2023-08-24 12:43:29 +00:00
|
|
|
- cd ..
|
|
|
|
- ninja coverage-html -C _build
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- _build/meson-logs/coveragereport
|
|
|
|
|
|
|
|
|
2023-03-29 22:28:59 +00:00
|
|
|
flatpak:
|
|
|
|
variables:
|
|
|
|
BUNDLE: "mks-test-widget-dev.flatpak"
|
|
|
|
MANIFEST_PATH: "org.gnome.libmks.mks.json"
|
|
|
|
FLATPAK_MODULE: "mks"
|
|
|
|
RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"
|
|
|
|
APP_ID: "org.gnome.libmks.mks"
|
|
|
|
extends: ".flatpak"
|
2023-03-29 22:32:43 +00:00
|
|
|
|
|
|
|
reference:
|
2023-08-24 12:43:29 +00:00
|
|
|
image: fedora:rawhide
|
2023-03-29 22:32:43 +00:00
|
|
|
stage: docs
|
|
|
|
variables:
|
2023-08-24 12:43:29 +00:00
|
|
|
MESON_FLAGS: "--buildtype=release -Ddocs=true -Dintrospection=enabled"
|
2023-03-29 22:32:43 +00:00
|
|
|
before_script:
|
2023-10-02 14:51:17 +00:00
|
|
|
- sudo dnf install -y git gtk4-devel meson gcc
|
2024-01-14 14:54:13 +00:00
|
|
|
gi-docgen gobject-introspection-devel vala python3-packaging
|
2023-03-29 22:32:43 +00:00
|
|
|
script:
|
|
|
|
- mkdir -p pfx/
|
|
|
|
- meson ${MESON_FLAGS} --prefix=${PWD}/pfx -Ddocs=true _build
|
|
|
|
- ninja -C _build install
|
|
|
|
- mkdir -p _reference/
|
|
|
|
- mv pfx/share/doc/libmks1/ _reference/
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- _reference
|
|
|
|
|
|
|
|
pages:
|
|
|
|
stage: deploy
|
|
|
|
needs: ["reference"]
|
|
|
|
script:
|
|
|
|
- mv _reference public/
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|
|
|
|
only:
|
|
|
|
- main
|