]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
ci: Also perform package upgrades on macOS and FreeBSD
authorMartin Kletzander <mkletzan@redhat.com>
Tue, 15 Jun 2021 08:15:39 +0000 (10:15 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Thu, 24 Jun 2021 07:14:08 +0000 (09:14 +0200)
The base OS image might include outdated contents, and we don't
want to get spurious failures caused by bugs that have already been
fixed in the respective packages.

This is particularly important on macOS, because 'brew install foo'
will fail if 'foo' is already installed but outdated: upgrading all
packages first ensures we never run into this scenario.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
.gitlab-ci.yml
ci/cirrus/build.yml

index 3fa616261e93ad38a2fc23c322296952fa866b27..3cb6ff5e6b262ab4970d5e38b71d4e269826919c 100644 (file)
@@ -115,6 +115,7 @@ stages:
           -e "s|[@]CIRRUS_VM_IMAGE_SELECTOR@|$CIRRUS_VM_IMAGE_SELECTOR|g"
           -e "s|[@]CIRRUS_VM_IMAGE_NAME@|$CIRRUS_VM_IMAGE_NAME|g"
           -e "s|[@]UPDATE_COMMAND@|$UPDATE_COMMAND|g"
+          -e "s|[@]UPGRADE_COMMAND@|$UPGRADE_COMMAND|g"
           -e "s|[@]INSTALL_COMMAND@|$INSTALL_COMMAND|g"
           -e "s|[@]PATH@|$PATH_EXTRA${PATH_EXTRA:+:}\$PATH|g"
           -e "s|[@]PKG_CONFIG_PATH@|$PKG_CONFIG_PATH|g"
@@ -423,6 +424,7 @@ x64-freebsd-12-build:
     CIRRUS_VM_IMAGE_SELECTOR: image_family
     CIRRUS_VM_IMAGE_NAME: freebsd-12-2
     UPDATE_COMMAND: pkg update
+    UPGRADE_COMMAND: pkg upgrade -y
     INSTALL_COMMAND: pkg install -y
 
 x64-freebsd-13-build:
@@ -433,6 +435,7 @@ x64-freebsd-13-build:
     CIRRUS_VM_IMAGE_SELECTOR: image_family
     CIRRUS_VM_IMAGE_NAME: freebsd-13-0
     UPDATE_COMMAND: pkg update
+    UPGRADE_COMMAND: pkg upgrade -y
     INSTALL_COMMAND: pkg install -y
 
 x64-macos-11-build:
@@ -443,6 +446,7 @@ x64-macos-11-build:
     CIRRUS_VM_IMAGE_SELECTOR: image
     CIRRUS_VM_IMAGE_NAME: big-sur-base
     UPDATE_COMMAND: brew update
+    UPGRADE_COMMAND: brew upgrade
     INSTALL_COMMAND: brew install
     PATH_EXTRA: /usr/local/opt/ccache/libexec:/usr/local/opt/gettext/bin:/usr/local/opt/libpcap/bin:/usr/local/opt/libxslt/bin:/usr/local/opt/rpcgen/bin
     PKG_CONFIG_PATH: /usr/local/opt/curl/lib/pkgconfig:/usr/local/opt/libpcap/lib/pkgconfig:/usr/local/opt/libxml2/lib/pkgconfig:/usr/local/opt/ncurses/lib/pkgconfig:/usr/local/opt/readline/lib/pkgconfig
index 39c17dc08a4331aa6392f91b6fd046ede8e1c2ba..867d5f297b7ea464de97e56a6e2439b1d7f650ec 100644 (file)
@@ -15,6 +15,7 @@ env:
 build_task:
   install_script:
     - @UPDATE_COMMAND@
+    - @UPGRADE_COMMAND@
     - @INSTALL_COMMAND@ @PKGS@
     - if test -n "@PYPI_PKGS@" ; then @PIP3@ install @PYPI_PKGS@ ; fi
   clone_script: