[windows] Add Kotlin (#3784)

This commit is contained in:
mikhailshaganov
2021-08-04 12:19:55 +03:00
committed by GitHub
parent 33004045dd
commit 5ece292613
5 changed files with 17 additions and 1 deletions

View File

@@ -78,6 +78,11 @@ function Get-GoVersion {
return "Go $goVersion"
}
function Get-KotlinVersion {
$kotlinVersion = $((cmd /c "kotlinc -version 2>&1") | Out-String).split(" ")[2]
return "Kotlin $kotlinVersion"
}
function Get-PHPVersion {
($(php --version) | Out-String) -match "PHP (?<version>\d+\.\d+\.\d+)" | Out-Null
$phpVersion = $Matches.Version

View File

@@ -39,7 +39,8 @@ $markdown += New-MDList -Style Unordered -Lines (@(
(Get-PerlVersion),
(Get-PHPVersion),
(Get-PythonVersion),
(Get-RubyVersion)
(Get-RubyVersion),
(Get-KotlinVersion)
) | Sort-Object
)

View File

@@ -97,3 +97,11 @@ Describe "CMake" {
"cmake --version" | Should -ReturnZeroExitCode
}
}
Describe "Kotlin" {
$kotlinPackages = @("kotlinc", "kotlinc-js", "kotlinc-jvm")
It "<toolName> is available" -TestCases ($kotlinPackages | ForEach-Object { @{ toolName = $_ } }) {
"$toolName -version" | Should -ReturnZeroExitCode
}
}

View File

@@ -387,6 +387,7 @@
{ "name": "tortoisesvn" },
{ "name": "swig" },
{ "name": "vswhere" },
{ "name": "kotlinc" },
{
"name": "julia",
"args": [ "--ia", "/DIR=C:\\Julia" ]

View File

@@ -413,6 +413,7 @@
{ "name": "tortoisesvn" },
{ "name": "swig" },
{ "name": "vswhere" },
{ "name": "kotlinc" },
{
"name": "julia",
"args": [ "--ia", "/DIR=C:\\Julia" ]