]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Cirrus CI - support existing homebrew packages
authorMartin Matuska <martin@matuska.org>
Sat, 30 Mar 2019 00:26:26 +0000 (01:26 +0100)
committerMartin Matuska <martin@matuska.org>
Sat, 30 Mar 2019 00:26:56 +0000 (01:26 +0100)
build/ci/cirrus_ci.sh

index 9db762f97cca7e1aa4a20b85eba9a96c5427d062..4def08374f296f751ab00d860225d037afb25164 100755 (executable)
@@ -17,8 +17,11 @@ then
        elif [ "${UNAME}" = "Darwin" ]
        then
                set -x -e
-               brew update
-               brew install autoconf automake libtool pkg-config cmake xz lz4 zstd
+               brew update > /dev/null
+               for pkg in autoconf automake libtool pkg-config cmake xz lz4 zstd
+               do
+                       brew list $pkg > /dev/null && brew upgrade $pkg || brew install $pkg
+               done
        elif [ "${UNAME}" = "Linux" ]
        then
                if [ -f "/etc/debian_version" ]