mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 19:41:16 +00:00
In the distros using RPMs, we build libvirt once as a side effect of running "ninja dist", and once via rpmbuild. In addition "ninja dist" will run all tests including the "syntax-check" suite, despite use having a separate "codestyle" job for for that. There is no way to pass "--no-suite" when creating the dist, but if we switch to invoking "meson dist", we can skip the build+test part entirely using "--no-tests". When doing this we then run explicit "meson compile" and "meson test" commands for the distros that don't build the RPMs, and in the latter case we can now skip the "syntax-check" suite. The RPM builds already skipped the "syntax-check" suite. Reviewed-by: Michal Privoznik <mprivozn@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
29 lines
812 B
YAML
29 lines
812 B
YAML
@CIRRUS_VM_INSTANCE_TYPE@:
|
|
@CIRRUS_VM_IMAGE_SELECTOR@: @CIRRUS_VM_IMAGE_NAME@
|
|
|
|
env:
|
|
CI_REPOSITORY_URL: "@CI_REPOSITORY_URL@"
|
|
CI_COMMIT_REF_NAME: "@CI_COMMIT_REF_NAME@"
|
|
CI_COMMIT_SHA: "@CI_COMMIT_SHA@"
|
|
PATH: "@PATH@"
|
|
PKG_CONFIG_PATH: "@PKG_CONFIG_PATH@"
|
|
PYTHON: "@PYTHON@"
|
|
MAKE: "@MAKE@"
|
|
VIR_TEST_VERBOSE: "1"
|
|
VIR_TEST_DEBUG: "1"
|
|
|
|
build_task:
|
|
install_script:
|
|
- @UPDATE_COMMAND@
|
|
- @INSTALL_COMMAND@ @PKGS@
|
|
- if test -n "@PYPI_PKGS@" ; then @PIP3@ install @PYPI_PKGS@ ; fi
|
|
clone_script:
|
|
- git clone --depth 100 "$CI_REPOSITORY_URL" .
|
|
- git fetch origin "$CI_COMMIT_REF_NAME"
|
|
- git reset --hard "$CI_COMMIT_SHA"
|
|
build_script:
|
|
- meson setup build
|
|
- meson dist -C build --no-tests
|
|
- meson compile -C build
|
|
- meson test -C build --no-suite syntax-check
|