7 .git_build_vars: &git_build_vars |
8 export MAKEFLAGS="-j$(getconf _NPROCESSORS_ONLN)"
9 export SCRATCH_DIR="$PWD/scratch"
10 export VROOT="$SCRATCH_DIR/vroot"
11 export LIBDIR="$VROOT/lib"
12 export LD_LIBRARY_PATH="$LIBDIR"
13 export PATH="$VROOT/bin:$PATH"
14 export PKG_CONFIG_PATH="$LIBDIR/pkgconfig"
15 export CFLAGS="-Werror"
17 .native_git_build_job:
19 - .gitlab_native_build_job
23 - mkdir -p "$SCRATCH_DIR"
25 - git clone --depth 1 https://gitlab.com/libvirt/libvirt.git
27 - meson build -Ddriver_libvirtd=disabled "--prefix=$VROOT" "--libdir=$LIBDIR"
28 - ninja -C build install
30 - $PYTHON -m build -n -x
31 - $PYTHON -m venv test-venv --system-site-packages --symlinks
32 - test-venv/bin/python -m pip install dist/libvirt_python*.whl
33 - test-venv/bin/python -m pytest tests
34 - if test -x /usr/bin/rpmbuild && test "$RPM" != "skip" ;
37 rpmbuild --clean --nodeps --define "_topdir $PWD/rpmbuild" -ta dist/libvirt-python*tar.gz ;
38 mv rpmbuild/RPMS/x86_64/ libvirt-python-rpms ;
43 - .gitlab_native_build_job
45 - export MAKEFLAGS="-j$(getconf _NPROCESSORS_ONLN)"
46 - export CFLAGS="-Werror"
47 - $PYTHON -m build -n -x
48 - $PYTHON -m venv test-venv --system-site-packages --symlinks
49 - test-venv/bin/python -m pip install dist/libvirt_python*.whl
50 - test-venv/bin/python -m pytest tests
51 - if test -x /usr/bin/rpmbuild && test "$RPM" != "skip" ;
54 rpmbuild --clean --nodeps --define "_topdir $PWD/rpmbuild" -ta dist/libvirt-python*tar.gz ;
55 mv rpmbuild/RPMS/x86_64/ libvirt-python-rpms ;
58 include: '/ci/gitlab.yml'
62 - .gitlab_native_build_job
64 - job: x86_64-centos-stream-9-git
69 - $PYTHON -m venv test-venv --system-site-packages --symlinks
70 - test-venv/bin/python -m pip install dist/libvirt_python*.whl
71 - LIBVIRT_API_COVERAGE=1 test-venv/bin/python -m pytest tests
75 TARGET_BASE_IMAGE: quay.io/centos/centos:stream9