Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion NewMachineSetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,20 @@ update_homebrew() {
install_brewfile() {
echo "Installing packages and applications from Brewfile..."
local brew_bundle_args=(--verbose)
if ! invoke_with_retry "Install Brewfile dependencies" brew bundle "${brew_bundle_args[@]}"; then
local -a brew_bundle_cmd=(brew bundle "${brew_bundle_args[@]}")

if is_ci_environment && [ "$(uname -s)" = "Darwin" ]; then
echo "Skipping Homebrew casks and Mac App Store apps in CI."
if ! invoke_with_retry \
"Install Brewfile dependencies" \
env HOMEBREW_BUNDLE_NO_INSTALL_CASK=1 HOMEBREW_BUNDLE_NO_INSTALL_MAS=1 "${brew_bundle_cmd[@]}"; then
record_failure "Brewfile" "bundle_install_failed"
return 1
fi
return 0
fi

if ! invoke_with_retry "Install Brewfile dependencies" "${brew_bundle_cmd[@]}"; then
record_failure "Brewfile" "bundle_install_failed"
return 1
fi
Expand Down
Loading