ci: Use meson for CI build

All consumers of the submodule switched to meson, except the CI build.
It neither seems useful to maintain a second build system just for that
purpose, nor to test a configuation that isn't used by anybody.

So set up a small fake project that includes gvc as a subproject, and
build that during CI.

https://gitlab.gnome.org/GNOME/libgnome-volume-control/merge_requests/9
This commit is contained in:
Florian Müllner 2019-11-22 19:34:06 +01:00
parent 468022b708
commit 78d3f49f79
3 changed files with 28 additions and 2 deletions

View File

@ -5,7 +5,9 @@ build-fedora:
image: fedora:latest
stage: test
before_script:
- dnf install -y redhat-rpm-config gcc make pulseaudio-libs-devel alsa-lib-devel gtk3-devel
- dnf install -y redhat-rpm-config gcc meson pulseaudio-libs-devel alsa-lib-devel gtk3-devel
script:
- make -f Makefile.tests
- cd .gitlab-ci
- meson _build
- ninja -C _build

23
.gitlab-ci/meson.build Normal file
View File

@ -0,0 +1,23 @@
project('gnome-volume-control-ci', 'c',
version: '1.0.0',
meson_version: '>= 0.47.0',
license: 'GPLv2+'
)
prefix = get_option('prefix')
datadir = join_paths(prefix, get_option('datadir'))
libdir = join_paths(prefix, get_option('libdir'))
pkgdatadir = join_paths(datadir, meson.project_name())
pkglibdir = join_paths(libdir, meson.project_name())
libgvc = subproject('gvc',
default_options: [
'package_name=' + meson.project_name(),
'package_version=' + meson.project_version(),
'pkgdatadir=' + pkgdatadir,
'pkglibdir=' + pkglibdir,
'alsa=true'
]
)

1
.gitlab-ci/subprojects/gvc Symbolic link
View File

@ -0,0 +1 @@
../../