summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorPeter Krempa <pkrempa@redhat.com>2022-10-10 10:44:17 +0200
committerErik Skultety <eskultet@redhat.com>2022-10-13 08:35:32 +0000
commit5b5cd3daccaa68bc6131facd79128f4e905ce34b (patch)
treec8b03b7c16d0165dda3a0a93243d0251efc1ba2c /.gitlab-ci.yml
parent9716b459cabcbc412a230ceb975369103ce2addc (diff)
downloadlibvirt-python-5b5cd3daccaa68bc6131facd79128f4e905ce34b.tar.gz
ci: Expose built RPMs as artifactsv8.9.0
Expose the artifacts from the centos-stream-8/9 and fedora 35/36 jobs so that the main libvirt integration testing project can consume them. The new libvirt sub-rpm containing a python helper to access QMP directly requires python environment which we didn't yet install in the integration job. Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml12
1 files changed, 10 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 14d8bc3..d97d5e0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -29,7 +29,11 @@ stages:
- $PYTHON -m pip install .
- $PYTHON setup.py test
- $PYTHON setup.py sdist
- - if test -x /usr/bin/rpmbuild && test "$RPM" != "skip" ; then rpmbuild --nodeps -ta dist/libvirt-python*tar.gz ; fi
+ - if test -x /usr/bin/rpmbuild && test "$RPM" != "skip" ;
+ then
+ rpmbuild --clean --nodeps --define "_topdir $PWD/rpmbuild" -ta dist/libvirt-python*tar.gz ;
+ mv rpmbuild/RPMS/x86_64/ libvirt-python-rpms ;
+ fi
.native_git_build_job_prebuilt_env:
extends:
@@ -49,7 +53,11 @@ stages:
- $PYTHON -m pip install .
- $PYTHON setup.py test
- $PYTHON setup.py sdist
- - if test -x /usr/bin/rpmbuild && test "$RPM" != "skip" ; then rpmbuild --nodeps -ta dist/libvirt-python*tar.gz ; fi
+ - if test -x /usr/bin/rpmbuild && test "$RPM" != "skip" ;
+ then
+ rpmbuild --clean --nodeps --define "_topdir $PWD/rpmbuild" -ta dist/libvirt-python*tar.gz ;
+ mv rpmbuild/RPMS/x86_64/ libvirt-python-rpms ;
+ fi
.native_build_job_prebuilt_env:
extends: