Merge pull request #1803 from MaksimZhukov/v-mazhuk/remove-mobile-center-cli

Remove mobile-center-cli package from MacOS images
This commit is contained in:
Maxim Lobanov
2020-10-14 21:59:56 +03:00
committed by GitHub
2 changed files with 8 additions and 15 deletions

View File

@@ -1,11 +1,6 @@
source ~/utils/utils.sh
node_common_modules=(
node-gyp
mobile-center-cli
)
node_catalina_modules=(
node_modules=(
appcenter-cli
newman
)
@@ -23,6 +18,10 @@ if is_Less_Catalina; then
npm install -g npm@3
npm config set prefix /usr/local
# This step is required to install App Center CLI
echo Installing Omelette...
npm install -g omelette@0.4.14
echo Installing App Center CLI...
npm install -g appcenter-cli@^1.0.0
else
@@ -30,7 +29,7 @@ else
brew install node@12
brew link node@12 --force
for module in ${node_catalina_modules[@]}; do
for module in ${node_modules[@]}; do
echo "Install $module"
npm install -g $module
done
@@ -40,8 +39,6 @@ echo Installing yarn...
curl -o- -L https://yarnpkg.com/install.sh | bash
if is_Less_BigSur; then
for module in ${node_common_modules[@]}; do
echo "Install $module"
npm install -g $module
done
echo "Install node-gyp"
npm install -g node-gyp
fi

View File

@@ -102,10 +102,6 @@ Describe "Common utilities" {
"aliyun --version" | Should -ReturnZeroExitCode
}
It "Mobile Center CLI" -Skip:($os.IsBigSur) {
"mobile-center --version" | Should -ReturnZeroExitCode
}
Context "Nomad" -Skip:($os.IsBigSur) {
It "Nomad CLI" {
$result = Get-CommandResult "gem list"