• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

コミットメタ情報

リビジョンc45a540f4bd47b2947edf585c89bbfdc338eaef7 (tree)
日時2022-01-19 01:42:42
作者Daniel P. Berrangé <berrange@redh...>
コミッターAlex Bennée

ログメッセージ

.gitlab-ci.d/cirrus: auto-generate variables with lcitool

The current Cirrus CI variables files were previously generated by using
lcitool. This change wires them up to the refresh script to make that
link explicit.

This changes the package list because libvirt-ci now knows about the
mapping for dtc on FreeBSD and macOS platforms.

The variables are also now emit in sorted order for stability across
runs.

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20211215141949.3512719-15-berrange@redhat.com>
Message-Id: <20220105135009.1584676-15-alex.bennee@linaro.org>

変更サマリ

差分

--- a/.gitlab-ci.d/cirrus/freebsd-12.vars
+++ b/.gitlab-ci.d/cirrus/freebsd-12.vars
@@ -2,12 +2,15 @@
22 #
33 # $ lcitool variables freebsd-12 qemu
44 #
5-# https://gitlab.com/libvirt/libvirt-ci/-/commit/c7e275ab27ac0dcd09da290817b9adeea1fd1eb1
5+# https://gitlab.com/libvirt/libvirt-ci
66
7-PACKAGING_COMMAND='pkg'
87 CCACHE='/usr/local/bin/ccache'
8+CPAN_PKGS=''
9+CROSS_PKGS=''
910 MAKE='/usr/local/bin/gmake'
1011 NINJA='/usr/local/bin/ninja'
11-PYTHON='/usr/local/bin/python3'
12+PACKAGING_COMMAND='pkg'
1213 PIP3='/usr/local/bin/pip-3.8'
13-PKGS='alsa-lib bash bzip2 ca_root_nss capstone4 ccache cdrkit-genisoimage ctags curl cyrus-sasl dbus diffutils gettext git glib gmake gnutls gsed gtk3 libepoxy libffi libgcrypt libjpeg-turbo libnfs libspice-server libssh libtasn1 libxml2 llvm lttng-ust lzo2 meson ncurses nettle ninja opencv p5-Test-Harness perl5 pixman pkgconf png py38-numpy py38-pillow py38-pip py38-sphinx py38-sphinx_rtd_theme py38-virtualenv py38-yaml python3 rpm2cpio sdl2 sdl2_image snappy spice-protocol tesseract texinfo usbredir virglrenderer vte3 zstd'
14+PKGS='alsa-lib bash bzip2 ca_root_nss capstone4 ccache cdrkit-genisoimage ctags curl cyrus-sasl dbus diffutils dtc gettext git glib gmake gnutls gsed gtk3 libepoxy libffi libgcrypt libjpeg-turbo libnfs libspice-server libssh libtasn1 libxml2 llvm lttng-ust lzo2 meson ncurses nettle ninja opencv p5-Test-Harness perl5 pixman pkgconf png py38-numpy py38-pillow py38-pip py38-sphinx py38-sphinx_rtd_theme py38-virtualenv py38-yaml python3 rpm2cpio sdl2 sdl2_image snappy spice-protocol tesseract texinfo usbredir virglrenderer vte3 zstd'
15+PYPI_PKGS=''
16+PYTHON='/usr/local/bin/python3'
--- a/.gitlab-ci.d/cirrus/freebsd-13.vars
+++ b/.gitlab-ci.d/cirrus/freebsd-13.vars
@@ -2,12 +2,15 @@
22 #
33 # $ lcitool variables freebsd-13 qemu
44 #
5-# https://gitlab.com/libvirt/libvirt-ci/-/commit/c7e275ab27ac0dcd09da290817b9adeea1fd1eb1
5+# https://gitlab.com/libvirt/libvirt-ci
66
7-PACKAGING_COMMAND='pkg'
87 CCACHE='/usr/local/bin/ccache'
8+CPAN_PKGS=''
9+CROSS_PKGS=''
910 MAKE='/usr/local/bin/gmake'
1011 NINJA='/usr/local/bin/ninja'
11-PYTHON='/usr/local/bin/python3'
12+PACKAGING_COMMAND='pkg'
1213 PIP3='/usr/local/bin/pip-3.8'
13-PKGS='alsa-lib bash bzip2 ca_root_nss capstone4 ccache cdrkit-genisoimage ctags curl cyrus-sasl dbus diffutils gettext git glib gmake gnutls gsed gtk3 libepoxy libffi libgcrypt libjpeg-turbo libnfs libspice-server libssh libtasn1 libxml2 llvm lttng-ust lzo2 meson ncurses nettle ninja opencv p5-Test-Harness perl5 pixman pkgconf png py38-numpy py38-pillow py38-pip py38-sphinx py38-sphinx_rtd_theme py38-virtualenv py38-yaml python3 rpm2cpio sdl2 sdl2_image snappy spice-protocol tesseract texinfo usbredir virglrenderer vte3 zstd'
14+PKGS='alsa-lib bash bzip2 ca_root_nss capstone4 ccache cdrkit-genisoimage ctags curl cyrus-sasl dbus diffutils dtc gettext git glib gmake gnutls gsed gtk3 libepoxy libffi libgcrypt libjpeg-turbo libnfs libspice-server libssh libtasn1 libxml2 llvm lttng-ust lzo2 meson ncurses nettle ninja opencv p5-Test-Harness perl5 pixman pkgconf png py38-numpy py38-pillow py38-pip py38-sphinx py38-sphinx_rtd_theme py38-virtualenv py38-yaml python3 rpm2cpio sdl2 sdl2_image snappy spice-protocol tesseract texinfo usbredir virglrenderer vte3 zstd'
15+PYPI_PKGS=''
16+PYTHON='/usr/local/bin/python3'
--- a/.gitlab-ci.d/cirrus/macos-11.vars
+++ b/.gitlab-ci.d/cirrus/macos-11.vars
@@ -2,14 +2,15 @@
22 #
33 # $ lcitool variables macos-11 qemu
44 #
5-# https://gitlab.com/libvirt/libvirt-ci/-/commit/c7e275ab27ac0dcd09da290817b9adeea1fd1eb1
5+# https://gitlab.com/libvirt/libvirt-ci
66
7-PACKAGING_COMMAND='brew'
87 CCACHE='/usr/local/bin/ccache'
8+CPAN_PKGS='Test::Harness'
9+CROSS_PKGS=''
910 MAKE='/usr/local/bin/gmake'
1011 NINJA='/usr/local/bin/ninja'
11-PYTHON='/usr/local/bin/python3'
12+PACKAGING_COMMAND='brew'
1213 PIP3='/usr/local/bin/pip3'
13-PKGS='bash bc bzip2 capstone ccache cpanminus ctags curl dbus diffutils gcovr gettext git glib gnu-sed gnutls gtk+3 jemalloc jpeg-turbo libepoxy libffi libgcrypt libiscsi libnfs libpng libslirp libssh libtasn1 libusb libxml2 llvm lzo make meson ncurses nettle ninja perl pixman pkg-config python3 rpm2cpio sdl2 sdl2_image snappy sparse spice-protocol tesseract texinfo usbredir vde vte3 zlib zstd'
14+PKGS='bash bc bzip2 capstone ccache cpanminus ctags curl dbus diffutils dtc gcovr gettext git glib gnu-sed gnutls gtk+3 jemalloc jpeg-turbo libepoxy libffi libgcrypt libiscsi libnfs libpng libslirp libssh libtasn1 libusb libxml2 llvm lzo make meson ncurses nettle ninja perl pixman pkg-config python3 rpm2cpio sdl2 sdl2_image snappy sparse spice-protocol tesseract texinfo usbredir vde vte3 zlib zstd'
1415 PYPI_PKGS='PyYAML numpy pillow sphinx sphinx-rtd-theme virtualenv'
15-CPAN_PKGS='Test::Harness'
16+PYTHON='/usr/local/bin/python3'
--- a/tests/lcitool/refresh
+++ b/tests/lcitool/refresh
@@ -60,6 +60,11 @@ def generate_dockerfile(host, target, cross=None, trailer=None):
6060 cmd.extend([target, "qemu"])
6161 generate(filename, cmd, trailer)
6262
63+def generate_cirrus(target, trailer=None):
64+ filename = Path(src_dir, ".gitlab-ci.d", "cirrus", target + ".vars")
65+ cmd = [lcitool_path, "variables", target, "qemu"]
66+ generate(filename, cmd, trailer)
67+
6368 ubuntu1804_skipssh = [
6469 "# https://bugs.launchpad.net/qemu/+bug/1838763\n",
6570 "ENV QEMU_CONFIGURE_OPTS --disable-libssh\n"
@@ -79,6 +84,11 @@ try:
7984 generate_dockerfile("ubuntu2004", "ubuntu-2004",
8085 trailer="".join(ubuntu2004_tsanhack))
8186 generate_dockerfile("opensuse-leap", "opensuse-leap-152")
87+
88+ generate_cirrus("freebsd-12")
89+ generate_cirrus("freebsd-13")
90+ generate_cirrus("macos-11")
91+
8292 sys.exit(0)
8393 except Exception as ex:
8494 print(str(ex), file=sys.stderr)