mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2024-10-26 07:55:06 +03:00
ci: Make job skips more flexible
Instead of hardcoding the names of the targets for which certain steps should be skipped, use a separate variable to store that information. Signed-off-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
parent
68f5bd0bbc
commit
dc5edeb087
@ -45,7 +45,7 @@ stages:
|
||||
- $PYTHON setup.py build
|
||||
- $PYTHON setup.py test
|
||||
- $PYTHON setup.py sdist
|
||||
- if test -x /usr/bin/rpmbuild && test $NAME != "opensuse-151" ; then rpmbuild --nodeps -ta dist/libvirt-python*tar.gz ; fi
|
||||
- if test -x /usr/bin/rpmbuild && test "$RPM" != "skip" ; then rpmbuild --nodeps -ta dist/libvirt-python*tar.gz ; fi
|
||||
|
||||
.dist_build_job_template: &dist_build_job_definition
|
||||
image: $CI_REGISTRY_IMAGE/ci-$NAME:latest
|
||||
@ -56,7 +56,7 @@ stages:
|
||||
- $PYTHON setup.py build
|
||||
- $PYTHON setup.py test
|
||||
- $PYTHON setup.py sdist
|
||||
- if test -x /usr/bin/rpmbuild && test $NAME != "opensuse-151" ; then rpmbuild --nodeps -ta dist/libvirt-python*tar.gz ; fi
|
||||
- if test -x /usr/bin/rpmbuild && test "$RPM" != "skip" ; then rpmbuild --nodeps -ta dist/libvirt-python*tar.gz ; fi
|
||||
|
||||
# Check that all commits are signed-off for the DCO.
|
||||
# Skip on "libvirt" namespace, since we only need to run
|
||||
@ -115,6 +115,7 @@ opensuse-151-container:
|
||||
<<: *container_job_definition
|
||||
variables:
|
||||
NAME: opensuse-151
|
||||
RPM: skip
|
||||
|
||||
ubuntu-1804-container:
|
||||
<<: *container_job_definition
|
||||
@ -177,6 +178,7 @@ opensuse-151-dist-build:
|
||||
<<: *dist_build_job_definition
|
||||
variables:
|
||||
NAME: opensuse-151
|
||||
RPM: skip
|
||||
|
||||
ubuntu-1804-dist-build:
|
||||
<<: *dist_build_job_definition
|
||||
|
Loading…
Reference in New Issue
Block a user