mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
[macOS] add pester tests to install scripts part-1. (#2286)
* [macOS] add pester tests to install scripts part-1. * changed version * added changes related to common utils installation * added source tests file * removed tests from homebrew * moved jq to homebrew * fix nitpicks * incorrect things are fixed. * fixed some mistakes in the text * commonutils changed. * remove swiftlint installation from toolsets * removed useless string
This commit is contained in:
@@ -1,60 +1,21 @@
|
||||
#!/bin/bash -e -o pipefail
|
||||
|
||||
source ~/utils/utils.sh
|
||||
source ~/utils/invoke-tests.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
|
||||
aria2
|
||||
gnu-tar
|
||||
)
|
||||
|
||||
if is_Less_BigSur; then
|
||||
binst_common_utils+=(
|
||||
xctool
|
||||
bats
|
||||
parallel
|
||||
)
|
||||
fi
|
||||
|
||||
for package in ${binst_common_utils[@]}; do
|
||||
echo "Install $package"
|
||||
common_packages=$(get_toolset_value '.brew.common_packages[]')
|
||||
for package in $common_packages; do
|
||||
echo "Installing $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"
|
||||
cask_packages=$(get_toolset_value '.brew.cask_packages[]')
|
||||
for package in $cask_packages; do
|
||||
echo "Installing $package..."
|
||||
brew install --cask $package
|
||||
done
|
||||
|
||||
# Invoke bazel to download the latest bazel version via bazelisk
|
||||
bazel
|
||||
|
||||
# Invoke tests for all common tools
|
||||
invoke_tests "Common" "CommonUtils"
|
||||
Reference in New Issue
Block a user