mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-08 22:39:56 +00:00
5f96ea10d4
The base OS image might include outdated contents, and we don't want to get spurious failures caused by bugs that have already been fixed in the respective packages. This is particularly important on macOS, because 'brew install foo' will fail if 'foo' is already installed but outdated: upgrading all packages first ensures we never run into this scenario. Signed-off-by: Martin Kletzander <mkletzan@redhat.com> Reviewed-by: Andrea Bolognani <abologna@redhat.com>
30 lines
836 B
YAML
30 lines
836 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@
|
|
- @UPGRADE_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
|