diff options
author | Daniel P. Berrangé <berrange@redhat.com> | 2021-05-25 11:07:09 +0100 |
---|---|---|
committer | Daniel P. Berrangé <berrange@redhat.com> | 2021-05-25 13:07:15 +0100 |
commit | 27bc9111b0302f2be6c29ef01cf55d638406cd70 (patch) | |
tree | b62da1b018382e6b56b8301c86240afd349f0398 | |
parent | 8a0504da79415e876592685fb75f2b5bcb425384 (diff) | |
download | libvirt-python-27bc9111b0302f2be6c29ef01cf55d638406cd70.tar.gz |
gitlab: add OpenSUSE Tumbleweed container and build
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
-rw-r--r-- | .gitlab-ci.yml | 13 | ||||
-rw-r--r-- | ci/containers/ci-opensuse-tumbleweed.Dockerfile | 32 |
2 files changed, 45 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ff114b5..075fac0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -121,6 +121,11 @@ opensuse-leap-152-container: NAME: opensuse-leap-152 RPM: skip +opensuse-tumbleweed-container: + extends: .container_job + variables: + NAME: opensuse-tumbleweed + ubuntu-1804-container: extends: .container_job variables: @@ -202,6 +207,14 @@ opensuse-leap-152-dist-build: NAME: opensuse-leap-152 RPM: skip +opensuse-tumbleweed-dist-build: + extends: .dist_build_job + needs: + - opensuse-tumbleweed-container + variables: + NAME: opensuse-tumbleweed + RPM: skip + ubuntu-1804-dist-build: extends: .dist_build_job needs: diff --git a/ci/containers/ci-opensuse-tumbleweed.Dockerfile b/ci/containers/ci-opensuse-tumbleweed.Dockerfile new file mode 100644 index 0000000..1007081 --- /dev/null +++ b/ci/containers/ci-opensuse-tumbleweed.Dockerfile @@ -0,0 +1,32 @@ +# THIS FILE WAS AUTO-GENERATED +# +# $ lcitool dockerfile opensuse-tumbleweed libvirt+dist,libvirt-python +# +# https://gitlab.com/libvirt/libvirt-ci/-/commit/1c5d87ecd2283614a8b0c31cead0b6d7883afd28 + +FROM registry.opensuse.org/opensuse/tumbleweed:latest + +RUN zypper update -y && \ + zypper install -y \ + ca-certificates \ + ccache \ + gcc \ + git \ + glibc-locale \ + libvirt-devel \ + pkgconfig \ + python3-base \ + python3-devel \ + python3-lxml \ + python3-pytest \ + python3-setuptools \ + rpm-build && \ + zypper clean --all && \ + rpm -qa | sort > /packages.txt && \ + mkdir -p /usr/libexec/ccache-wrappers && \ + ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \ + ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc + +ENV LANG "en_US.UTF-8" +ENV PYTHON "/usr/bin/python3" +ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers" |