Files
runner-images-sangeeth/images/macos/provision/core/commonutils.sh
Mikhail Timofeev 0d46520ccf [macOS] Fail builds on errors during the image generation (#1756)
* set -e and fix all the scripts

* add source utils to finalize_vm script

* change xcode version in postbuild script

* fix for softwareupdates and for xcode version
2020-10-23 17:59:08 +03:00

65 lines
937 B
Bash

#!/bin/bash -e -o pipefail
source ~/utils/utils.sh
# TO-DO: Move the list of brew packages and casks to toolset
# brew install
binst_common_utils=(
carthage
cmake
subversion
go
gnupg
llvm
libpq
zstd
packer
helm
aliyun-cli
bazelisk
gh
p7zip
ant
yamllint
aria2
)
if is_Less_BigSur; then
binst_common_utils+=(
xctool
bats
parallel
)
fi
for package in ${binst_common_utils[@]}; do
echo "Install $package"
brew install $package
done
# brew cask install
bcask_common_utils=(
julia
)
if is_Less_BigSur; then
bcask_common_utils+=(
virtualbox
vagrant
r
)
fi
for package in ${bcask_common_utils[@]}; do
echo "Install $package"
brew cask install $package
done
if ! is_HighSierra; then
brew install swiftlint
fi
# Invoke bazel to download the latest bazel version via bazelisk
bazel