Skip to content

Commit

Permalink
[mac OS] adding kotlin lang using brew (#3777)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhailshaganov authored Jul 29, 2021
1 parent f04052e commit 6317ee6
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 1 deletion.
5 changes: 5 additions & 0 deletions images/macos/software-report/SoftwareReport.Common.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -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 @(
@{
Expand Down
3 changes: 2 additions & 1 deletion images/macos/software-report/SoftwareReport.Generator.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ $languageAndRuntimeList = @(
(Get-DotnetVersionList),
(Get-GoVersion),
(Get-PHPVersion),
(Get-JuliaVersion)
(Get-JuliaVersion),
(Get-KotlinVersion)
)

if ( -not $os.IsHighSierra) {
Expand Down
8 changes: 8 additions & 0 deletions images/macos/tests/BasicTools.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
1 change: 1 addition & 0 deletions images/macos/toolsets/toolset-10.14.json
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@
"gnu-tar",
"go@1.15",
"helm",
"kotlin",
"libpq",
"llvm",
"p7zip",
Expand Down
1 change: 1 addition & 0 deletions images/macos/toolsets/toolset-10.15.json
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@
"gnu-tar",
"go@1.15",
"helm",
"kotlin",
"libpq",
"llvm",
"p7zip",
Expand Down
1 change: 1 addition & 0 deletions images/macos/toolsets/toolset-11.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@
"gnu-tar",
"go@1.15",
"helm",
"kotlin",
"libpq",
"llvm",
"p7zip",
Expand Down

0 comments on commit 6317ee6

Please sign in to comment.