ci(osx): use new location of the perforce
cask
#209
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This fix is a rebase of gitgitgadget#400.
The CI builds are failing for Mac OS X due to a change in the
location of the perforce cask. The command outputs the following
error:
So let's try to call
brew cask install perforce
first (which is whatthat error message suggests, in a most round-about way).
The "caskroom" way was added in 672f51c (travis-ci:
fix Perforce install on macOS, 2017-01-22) and the justification
is that the call "brew cask install perforce" can fail due to a checksum
mismatch: the recipe simply downloads the official Perforce distro, and
whenever that is updated, the recipe needs to be updated, too.
CI servers are typically fresh virtual machines, but not always. To
accommodate for that, let's try harder if
brew cask install perforce
fails, by specifically pulling the latest
master
of thehomebrew-cask
repository.This will still fail, of course, when
homebrew-cask
falls behindPerforce's release schedule. But once it is updated, we can now simply
re-run the failed jobs and they will pick up that update.
As for updating
homebrew-cask
: the beginnings of automating this inhttps://dev.azure.com/gitgitgadget/git/_build?definitionId=11&_a=summary
will be finished once the next Perforce upgrade comes around.