mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2026-01-06 18:17:26 +08:00
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:
@@ -1,11 +1,6 @@
|
|||||||
source ~/utils/utils.sh
|
source ~/utils/utils.sh
|
||||||
|
|
||||||
node_common_modules=(
|
node_modules=(
|
||||||
node-gyp
|
|
||||||
mobile-center-cli
|
|
||||||
)
|
|
||||||
|
|
||||||
node_catalina_modules=(
|
|
||||||
appcenter-cli
|
appcenter-cli
|
||||||
newman
|
newman
|
||||||
)
|
)
|
||||||
@@ -23,6 +18,10 @@ if is_Less_Catalina; then
|
|||||||
npm install -g npm@3
|
npm install -g npm@3
|
||||||
npm config set prefix /usr/local
|
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...
|
echo Installing App Center CLI...
|
||||||
npm install -g appcenter-cli@^1.0.0
|
npm install -g appcenter-cli@^1.0.0
|
||||||
else
|
else
|
||||||
@@ -30,7 +29,7 @@ else
|
|||||||
brew install node@12
|
brew install node@12
|
||||||
brew link node@12 --force
|
brew link node@12 --force
|
||||||
|
|
||||||
for module in ${node_catalina_modules[@]}; do
|
for module in ${node_modules[@]}; do
|
||||||
echo "Install $module"
|
echo "Install $module"
|
||||||
npm install -g $module
|
npm install -g $module
|
||||||
done
|
done
|
||||||
@@ -40,8 +39,6 @@ echo Installing yarn...
|
|||||||
curl -o- -L https://yarnpkg.com/install.sh | bash
|
curl -o- -L https://yarnpkg.com/install.sh | bash
|
||||||
|
|
||||||
if is_Less_BigSur; then
|
if is_Less_BigSur; then
|
||||||
for module in ${node_common_modules[@]}; do
|
echo "Install node-gyp"
|
||||||
echo "Install $module"
|
npm install -g node-gyp
|
||||||
npm install -g $module
|
|
||||||
done
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -102,10 +102,6 @@ Describe "Common utilities" {
|
|||||||
"aliyun --version" | Should -ReturnZeroExitCode
|
"aliyun --version" | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
|
|
||||||
It "Mobile Center CLI" -Skip:($os.IsBigSur) {
|
|
||||||
"mobile-center --version" | Should -ReturnZeroExitCode
|
|
||||||
}
|
|
||||||
|
|
||||||
Context "Nomad" -Skip:($os.IsBigSur) {
|
Context "Nomad" -Skip:($os.IsBigSur) {
|
||||||
It "Nomad CLI" {
|
It "Nomad CLI" {
|
||||||
$result = Get-CommandResult "gem list"
|
$result = Get-CommandResult "gem list"
|
||||||
|
|||||||
Reference in New Issue
Block a user