[Windows] Adding Swig (#3509)

This commit is contained in:
Nursultan Kassan
2021-06-07 12:23:47 +03:00
committed by GitHub
parent 46ced60271
commit 659b9d878c
6 changed files with 26 additions and 3 deletions

View File

@@ -0,0 +1,8 @@
################################################################################
## File: Install-Swig.ps1
## Desc: Install Swig
################################################################################
Choco-Install -PackageName swig
Invoke-PesterTests -TestFile "Tools" -TestName "Swig"

View File

@@ -101,6 +101,7 @@ $markdown += New-MDList -Style Unordered -Lines (@(
(Get-StackVersion),
(Get-SVNVersion),
(Get-VSWhereVersion),
(Get-SwigVersion),
(Get-WinAppDriver),
(Get-ZstdVersion),
(Get-YAMLLintVersion)

View File

@@ -258,3 +258,9 @@ function Get-DacFxVersion {
$dacfxversion = (./sqlpackage.exe /version)
return "DacFx $dacfxversion"
}
function Get-SwigVersion {
(swig -version | Out-String) -match "version (?<version>\d+\.\d+\.\d+)" | Out-Null
$swigVersion = $Matches.Version
return "Swig $swigVersion"
}

View File

@@ -258,3 +258,9 @@ Describe "Pipx" {
"pipx --version" | Should -ReturnZeroExitCode
}
}
Describe "Swig" {
It "Swig" {
"swig -version" | Should -ReturnZeroExitCode
}
}

View File

@@ -253,7 +253,8 @@
"{{ template_dir }}/scripts/Installers/Install-Selenium.ps1",
"{{ template_dir }}/scripts/Installers/Install-IEWebDriver.ps1",
"{{ template_dir }}/scripts/Installers/Install-Apache.ps1",
"{{ template_dir }}/scripts/Installers/Install-Nginx.ps1"
"{{ template_dir }}/scripts/Installers/Install-Nginx.ps1",
"{{ template_dir }}/scripts/Installers/Install-Swig.ps1"
]
},
{

View File

@@ -257,7 +257,8 @@
"{{ template_dir }}/scripts/Installers/Install-Selenium.ps1",
"{{ template_dir }}/scripts/Installers/Install-IEWebDriver.ps1",
"{{ template_dir }}/scripts/Installers/Install-Apache.ps1",
"{{ template_dir }}/scripts/Installers/Install-Nginx.ps1"
"{{ template_dir }}/scripts/Installers/Install-Nginx.ps1",
"{{ template_dir }}/scripts/Installers/Install-Swig.ps1"
]
},
{