summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorDaniel Wagner <dwagner@suse.de>2023-01-13 13:29:06 +0100
committerDaniel Wagner <dwagner@suse.de>2023-02-07 09:07:32 +0100
commitb1e8793e8d950c2bcc09ed708b474d412cad8cb5 (patch)
tree404e29497f53c6656c8025cb51e85d353bf498d8 /.gitlab-ci.yml
parentcd1a9bb09a4e9330f8669fb6d385b1e095f97fc2 (diff)
downloaddbus-b1e8793e8d950c2bcc09ed708b474d412cad8cb5.tar.gz
gitlab-ci: build libdbus as subproject
Test it's possible to consume libdbus as a subproject. Suggested-by: Simon McVittie <smcv@collabora.com> Signed-off-by: Daniel Wagner <dwagner@suse.de>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 64f4f569..f20b0ee5 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -206,6 +206,15 @@ debian meson clang debug:
ci_buildsys: "meson-dist"
ci_compiler: "clang"
ci_variant: "debug"
+ script:
+ - ./tools/ci-build.sh
+ # Also test that we can be used as a subproject:
+ # https://gitlab.freedesktop.org/dbus/dbus/-/merge_requests/388
+ - mkdir -p test/use-as-subproject/subprojects/dbus
+ - tar --strip-components=1 -C test/use-as-subproject/subprojects/dbus -xf ci-build-dist/*.tar.xz
+ - meson setup --wrap-mode=forcefallback test/use-as-subproject/_build test/use-as-subproject
+ - meson compile -C test/use-as-subproject/_build
+ - meson test -C test/use-as-subproject/_build
debian mingw32 autotools debug:
extends: .debian-build