]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'js/azure-ci-osx-fix'
authorJunio C Hamano <gitster@pobox.com>
Thu, 24 Oct 2019 04:34:02 +0000 (13:34 +0900)
committerJunio C Hamano <gitster@pobox.com>
Thu, 24 Oct 2019 04:34:02 +0000 (13:34 +0900)
Update installation procedure for Perforce on MacOS in the CI jobs
running on Azure pipelines, which was failing.

* js/azure-ci-osx-fix:
  ci(osx): use new location of the `perforce` cask

ci/install-dependencies.sh

index 85a9d6b15cdc539e4995a05483cfcefa105c36ab..ce149ed39c35836d585c8bc574d7b17f03963b2e 100755 (executable)
@@ -40,6 +40,11 @@ osx-clang|osx-gcc)
        test -z "$BREW_INSTALL_PACKAGES" ||
        brew install $BREW_INSTALL_PACKAGES
        brew link --force gettext
+       brew cask install perforce || {
+               # Update the definitions and try again
+               git -C "$(brew --repository)"/Library/Taps/homebrew/homebrew-cask pull &&
+               brew cask install perforce
+       } ||
        brew install caskroom/cask/perforce
        case "$jobname" in
        osx-gcc)