Commit 32b99bf1 authored by Frediano Ziglio's avatar Frediano Ziglio

ci: Build and test with Meson build system

Signed-off-by: Frediano Ziglio's avatarFrediano Ziglio <fziglio@redhat.com>
Acked-by: default avatarEduardo Lima (Etrunko) <etrunko@redhat.com>
parent 7637ccfc
Pipeline #121272 passed with stage
in 9 minutes and 56 seconds
......@@ -4,7 +4,7 @@ variables:
GIT_SUBMODULE_STRATEGY: recursive
before_script:
- dnf install -y git make automake autoconf autoconf-archive libtool xz
- dnf install -y git make automake autoconf autoconf-archive libtool xz meson
# get dependencies from spec file
- dnf install -y `sed '/^BuildRequires:/!d; s/.*://; s/\bspice-protocol\b//; s/>.*//' spice-streaming-agent.spec.in`
- git clone ${CI_REPOSITORY_URL/spice-streaming-agent/spice-protocol}
......@@ -18,3 +18,18 @@ build_and_test:
- make
- make check || (cat src/unittests/test-suite.log && exit 1)
- make distcheck
build_meson:
script:
- meson --buildtype=release build-default
# Meson does not update submodules recursively
- git submodule update --init --recursive
# this fix an issue with Meson dist
- if ! test -r ../spice-common.git; then DIR=`basename "$PWD"`; ln -s "$DIR/.git/modules/spice-common" ../spice-common.git; fi
- ninja -C build-default dist
- ninja -C build-default
- ninja -C build-default test
- meson --buildtype=release build-feat-disabled -Dauto_features=disabled
- ninja -C build-feat-disabled
- ninja -C build-feat-disabled test
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment