[mac OS] adding kotlin lang using brew (#3777)

This commit is contained in:
mikhailshaganov
2021-07-29 17:21:09 +03:00
committed by GitHub
parent f04052e064
commit 6317ee607b
6 changed files with 18 additions and 1 deletions

View File

@@ -507,6 +507,11 @@ function Get-BicepVersion {
return "Bicep CLI $bicepVersion"
}
function Get-KotlinVersion {
$kotlinVersion = Run-Command "kotlin -version" | Take-Part -Part 2
return "kotlin $kotlinVersion"
}
function Build-PackageManagementEnvironmentTable {
return @(
@{

View File

@@ -43,7 +43,8 @@ $languageAndRuntimeList = @(
(Get-DotnetVersionList),
(Get-GoVersion),
(Get-PHPVersion),
(Get-JuliaVersion)
(Get-JuliaVersion),
(Get-KotlinVersion)
)
if ( -not $os.IsHighSierra) {

View File

@@ -166,4 +166,12 @@ Describe "Homebrew" {
It "Homebrew" {
"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
}
}

View File

@@ -244,6 +244,7 @@
"gnu-tar",
"go@1.15",
"helm",
"kotlin",
"libpq",
"llvm",
"p7zip",

View File

@@ -196,6 +196,7 @@
"gnu-tar",
"go@1.15",
"helm",
"kotlin",
"libpq",
"llvm",
"p7zip",

View File

@@ -143,6 +143,7 @@
"gnu-tar",
"go@1.15",
"helm",
"kotlin",
"libpq",
"llvm",
"p7zip",