Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Windows] Adding Swig #3509

Merged
merged 17 commits into from
Jun 7, 2021
8 changes: 8 additions & 0 deletions images/win/scripts/Installers/Install-Swig.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
################################################################################
## File: Install-Swig.ps1
## Desc: Install Swig
################################################################################

Choco-Install -PackageName swig

Invoke-PesterTests -TestFile "Tools" -TestName "Swig"
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ $markdown += New-MDList -Style Unordered -Lines (@(
(Get-StackVersion),
(Get-SVNVersion),
(Get-VSWhereVersion),
(Get-SwigVersion),
(Get-WinAppDriver),
(Get-ZstdVersion),
(Get-YAMLLintVersion)
Expand Down
8 changes: 7 additions & 1 deletion images/win/scripts/SoftwareReport/SoftwareReport.Tools.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -257,4 +257,10 @@ function Get-DacFxVersion {
cd "C:\Program Files\Microsoft SQL Server\150\DAC\bin\"
$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"
}
6 changes: 6 additions & 0 deletions images/win/scripts/Tests/Tools.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -258,3 +258,9 @@ Describe "Pipx" {
"pipx --version" | Should -ReturnZeroExitCode
}
}

Describe "Swig" {
It "Swig" {
"swig -version" | Should -ReturnZeroExitCode
}
maxim-lobanov marked this conversation as resolved.
Show resolved Hide resolved
}
3 changes: 2 additions & 1 deletion images/win/windows2016.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
},
{
Expand Down
3 changes: 2 additions & 1 deletion images/win/windows2019.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
},
{
Expand Down