[macOS] Adding Bicep CLI (#3655)

* Add Bicep CLI

* Correct regex for bicep version

* Add Bicep CLI

* use tap path for bicep brew install

* use tap path for bicep brew install

* use tap path for bicep brew install

* Update bicep package name

* Update bicep package name

* Update bicep package name

* Add install script in order to run homebrew tap

* no need to reference utils.sh

* Remove bicep from common packages

* Add "CLI" to Bicep return statement

Co-authored-by: Marcus Felling <MarcusFelling@microsoft.com>
This commit is contained in:
Marcus Felling
2021-07-07 09:10:31 -05:00
committed by GitHub
parent f1ab1bd12f
commit e8381d7db3
7 changed files with 26 additions and 4 deletions

View File

@@ -0,0 +1,7 @@
#!/bin/bash -e -o pipefail
echo Installing bicep cli...
brew tap azure/bicep
brew install bicep
invoke_tests "Common" "Bicep"

View File

@@ -502,6 +502,11 @@ function Get-SwigVersion {
return "Swig $swigVersion" return "Swig $swigVersion"
} }
function Get-BicepVersion {
$bicepVersion = Run-Command "bicep --version" | Take-Part -Part 3
return "Bicep CLI $bicepVersion"
}
function Build-PackageManagementEnvironmentTable { function Build-PackageManagementEnvironmentTable {
return @( return @(
@{ @{

View File

@@ -167,7 +167,8 @@ $toolsList = @(
(Get-AWSSessionManagerCLIVersion), (Get-AWSSessionManagerCLIVersion),
(Get-AliyunCLIVersion), (Get-AliyunCLIVersion),
(Get-XcodeCommandLineToolsVersion), (Get-XcodeCommandLineToolsVersion),
(Get-SwigVersion) (Get-SwigVersion),
(Get-BicepVersion)
) )
if( -not $os.IsHighSierra) { if( -not $os.IsHighSierra) {

View File

@@ -183,7 +183,8 @@
"./provision/core/xcode-sims.sh", "./provision/core/xcode-sims.sh",
"./provision/core/xcode-postbuild.sh", "./provision/core/xcode-postbuild.sh",
"./provision/core/pypy.sh", "./provision/core/pypy.sh",
"./provision/core/pipx-packages.sh" "./provision/core/pipx-packages.sh",
"./provision/core/bicep.sh"
] ]
}, },
{ {

View File

@@ -186,7 +186,8 @@
"./provision/core/firefox.sh", "./provision/core/firefox.sh",
"./provision/core/xcode-postbuild.sh", "./provision/core/xcode-postbuild.sh",
"./provision/core/pypy.sh", "./provision/core/pypy.sh",
"./provision/core/pipx-packages.sh" "./provision/core/pipx-packages.sh",
"./provision/core/bicep.sh"
] ]
}, },
{ {

View File

@@ -189,7 +189,8 @@
"./provision/core/edge.sh", "./provision/core/edge.sh",
"./provision/core/firefox.sh", "./provision/core/firefox.sh",
"./provision/core/pypy.sh", "./provision/core/pypy.sh",
"./provision/core/pipx-packages.sh" "./provision/core/pipx-packages.sh",
"./provision/core/bicep.sh"
] ]
}, },
{ {

View File

@@ -92,3 +92,9 @@ Describe "Swig" {
"swig -version" | Should -ReturnZeroExitCode "swig -version" | Should -ReturnZeroExitCode
} }
} }
Describe "Bicep" {
It "Bicep" {
"bicep --version" | Should -ReturnZeroExitCode
}
}