Out of the Linux distros we build on in the CI, clang
is only available on Fedora.
Add a job to Fedora 31 and Rawhide, to have coverage
for clang on Linux as well.
Includes a refresh of the Dockerfiles to commit TBD:
https://gitlab.com/libvirt/libvirt-ci/-/merge_requests/38
Signed-off-by: Ján Tomko <jtomko(a)redhat.com>
---
.gitlab-ci.yml | 16 +++++++++++++++-
ci/containers/libvirt-fedora-31.Dockerfile | 1 +
ci/containers/libvirt-fedora-32.Dockerfile | 1 +
ci/containers/libvirt-fedora-rawhide.Dockerfile | 1 +
4 files changed, 18 insertions(+), 1 deletion(-)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 702198ec8e..f61ad7151c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -52,7 +52,7 @@ stages:
script:
- mkdir build
- cd build
- - ../autogen.sh || (cat config.log && exit 1)
+ - ../autogen.sh CC=$CC || (cat config.log && exit 1)
- $MAKE distcheck
# Jobs that we delegate to Cirrus CI because they require an operating
@@ -306,6 +306,20 @@ x64-fedora-rawhide:
variables:
NAME: fedora-rawhide
+x64-fedora-31-clang:
+ <<: *native_build_job_definition
+ needs: ["x64-fedora-31-container"]
+ variables:
+ CC: clang
+ NAME: fedora-31
+
+x64-fedora-rawhide-clang:
+ <<: *native_build_job_definition
+ needs: ["x64-fedora-rawhide-container"]
+ variables:
+ CC: clang
+ NAME: fedora-rawhide
+
x64-opensuse-151:
<<: *native_build_job_definition
variables:
diff --git a/ci/containers/libvirt-fedora-31.Dockerfile
b/ci/containers/libvirt-fedora-31.Dockerfile
index 72e6ae3b69..84b19e7330 100644
--- a/ci/containers/libvirt-fedora-31.Dockerfile
+++ b/ci/containers/libvirt-fedora-31.Dockerfile
@@ -12,6 +12,7 @@ RUN dnf update -y && \
ca-certificates \
ccache \
chrony \
+ clang \
cppi \
cyrus-sasl-devel \
dbus-devel \
diff --git a/ci/containers/libvirt-fedora-32.Dockerfile
b/ci/containers/libvirt-fedora-32.Dockerfile
index ea38a7f084..bbd7ff87a4 100644
--- a/ci/containers/libvirt-fedora-32.Dockerfile
+++ b/ci/containers/libvirt-fedora-32.Dockerfile
@@ -12,6 +12,7 @@ RUN dnf update -y && \
ca-certificates \
ccache \
chrony \
+ clang \
cppi \
cyrus-sasl-devel \
dbus-devel \
diff --git a/ci/containers/libvirt-fedora-rawhide.Dockerfile
b/ci/containers/libvirt-fedora-rawhide.Dockerfile
index 6da9bc8f69..d362662f35 100644
--- a/ci/containers/libvirt-fedora-rawhide.Dockerfile
+++ b/ci/containers/libvirt-fedora-rawhide.Dockerfile
@@ -13,6 +13,7 @@ RUN dnf update -y --nogpgcheck fedora-gpg-keys && \
ca-certificates \
ccache \
chrony \
+ clang \
cppi \
cyrus-sasl-devel \
dbus-devel \
--
2.26.2