[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:
Darii Nurgaleev
2020-12-23 22:14:13 +07:00
committed by GitHub
parent ac87b63b13
commit 7403f33180
20 changed files with 310 additions and 199 deletions

View File

@@ -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"