]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
ci: Start building RPMs
authorAndrea Bolognani <abologna@redhat.com>
Thu, 8 Oct 2020 13:36:07 +0000 (15:36 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Fri, 9 Oct 2020 08:14:42 +0000 (10:14 +0200)
We lost this coverage during the move from CentOS CI to GitLab CI,
and it's high time we brought it back.

Building RPMs is currently skipped for

  * openSUSE, which is not supported by our spec file;

  * clang builds, where rpmbuild fails with

    meson.build:1:0: ERROR: Unable to determine dynamic linker

  * targets where we install Meson from PyPi, because that doesn't
    bring in the necessary RPM macros.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
.gitlab-ci.yml

index dda199761a5d3563ce16b6cd1ed61758627f3140..887bc30242fb71fec2df7b195004ff280419318f 100644 (file)
@@ -58,6 +58,10 @@ stages:
         ninja -C build;
         ninja -C build test;
       fi
+    - if test -x /usr/bin/rpmbuild && test "$RPM" != "skip";
+      then
+        rpmbuild --nodeps -ta build/meson-dist/libvirt-*.tar.xz;
+      fi
 
 # Jobs that we delegate to Cirrus CI because they require an operating
 # system other than Linux. These jobs will only run if the required
@@ -302,6 +306,7 @@ x64-centos-7:
     # meson dist fails on CentOS 7 because of old git that fails to clone
     # from shallow git repository which is done when running meson dist
     DIST: skip
+    RPM: skip
 
 x64-centos-8:
   <<: *native_build_job_definition
@@ -309,6 +314,7 @@ x64-centos-8:
     - x64-centos-8-container
   variables:
     NAME: centos-8
+    RPM: skip
 
 x64-centos-8-clang:
   <<: *native_build_job_definition
@@ -317,6 +323,7 @@ x64-centos-8-clang:
   variables:
     NAME: centos-8
     CC: clang
+    RPM: skip
 
 x64-centos-stream:
   <<: *native_build_job_definition
@@ -324,6 +331,7 @@ x64-centos-stream:
     - x64-centos-stream-container
   variables:
     NAME: centos-stream
+    RPM: skip
 
 x64-fedora-31:
   <<: *native_build_job_definition
@@ -331,6 +339,7 @@ x64-fedora-31:
     - x64-fedora-31-container
   variables:
     NAME: fedora-31
+    RPM: skip
 
 x64-fedora-32:
   <<: *native_build_job_definition
@@ -353,6 +362,7 @@ x64-fedora-rawhide-clang:
   variables:
     NAME: fedora-rawhide
     CC: clang
+    RPM: skip
 
 x64-opensuse-151:
   <<: *native_build_job_definition
@@ -360,6 +370,7 @@ x64-opensuse-151:
     - x64-opensuse-151-container
   variables:
     NAME: opensuse-151
+    RPM: skip
 
 x64-ubuntu-1804:
   <<: *native_build_job_definition