[mac OS] adding kotlin lang using brew (#3777)
This commit is contained in:
@@ -507,6 +507,11 @@ function Get-BicepVersion {
|
|||||||
return "Bicep CLI $bicepVersion"
|
return "Bicep CLI $bicepVersion"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function Get-KotlinVersion {
|
||||||
|
$kotlinVersion = Run-Command "kotlin -version" | Take-Part -Part 2
|
||||||
|
return "kotlin $kotlinVersion"
|
||||||
|
}
|
||||||
|
|
||||||
function Build-PackageManagementEnvironmentTable {
|
function Build-PackageManagementEnvironmentTable {
|
||||||
return @(
|
return @(
|
||||||
@{
|
@{
|
||||||
|
|||||||
@@ -43,7 +43,8 @@ $languageAndRuntimeList = @(
|
|||||||
(Get-DotnetVersionList),
|
(Get-DotnetVersionList),
|
||||||
(Get-GoVersion),
|
(Get-GoVersion),
|
||||||
(Get-PHPVersion),
|
(Get-PHPVersion),
|
||||||
(Get-JuliaVersion)
|
(Get-JuliaVersion),
|
||||||
|
(Get-KotlinVersion)
|
||||||
)
|
)
|
||||||
|
|
||||||
if ( -not $os.IsHighSierra) {
|
if ( -not $os.IsHighSierra) {
|
||||||
|
|||||||
@@ -167,3 +167,11 @@ Describe "Homebrew" {
|
|||||||
"brew --version" | Should -ReturnZeroExitCode
|
"brew --version" | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Describe "Kotlin" {
|
||||||
|
$kotlinPackages = @("kapt", "kotlin", "kotlinc", "kotlinc-js", "kotlinc-jvm", "kotlin-dce-js")
|
||||||
|
|
||||||
|
It "<toolName> is available" -TestCases ($kotlinPackages | ForEach-Object { @{ toolName = $_ } }) {
|
||||||
|
"$toolName -version" | Should -ReturnZeroExitCode
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -244,6 +244,7 @@
|
|||||||
"gnu-tar",
|
"gnu-tar",
|
||||||
"[email protected]",
|
"[email protected]",
|
||||||
"helm",
|
"helm",
|
||||||
|
"kotlin",
|
||||||
"libpq",
|
"libpq",
|
||||||
"llvm",
|
"llvm",
|
||||||
"p7zip",
|
"p7zip",
|
||||||
|
|||||||
@@ -196,6 +196,7 @@
|
|||||||
"gnu-tar",
|
"gnu-tar",
|
||||||
"[email protected]",
|
"[email protected]",
|
||||||
"helm",
|
"helm",
|
||||||
|
"kotlin",
|
||||||
"libpq",
|
"libpq",
|
||||||
"llvm",
|
"llvm",
|
||||||
"p7zip",
|
"p7zip",
|
||||||
|
|||||||
@@ -143,6 +143,7 @@
|
|||||||
"gnu-tar",
|
"gnu-tar",
|
||||||
"[email protected]",
|
"[email protected]",
|
||||||
"helm",
|
"helm",
|
||||||
|
"kotlin",
|
||||||
"libpq",
|
"libpq",
|
||||||
"llvm",
|
"llvm",
|
||||||
"p7zip",
|
"p7zip",
|
||||||
|
|||||||
Reference in New Issue
Block a user