[Windows] Add yamllint support for the default Python version only (#1320)

* Add yamllint support

* fix yamllint verion output

* move yamllint to the Tools section
This commit is contained in:
Aleksandr Chebotov
2020-07-30 17:25:02 +03:00
committed by GitHub
parent 1f7bfc8b3c
commit affa6b1297
6 changed files with 19 additions and 3 deletions

View File

@@ -339,7 +339,8 @@
"scripts":[
"{{ template_dir }}/scripts/Installers/Install-PyPy.ps1",
"{{ template_dir }}/scripts/Installers/Install-Toolset.ps1",
"{{ template_dir }}/scripts/Installers/Configure-Toolset.ps1"
"{{ template_dir }}/scripts/Installers/Configure-Toolset.ps1",
"{{ template_dir }}/scripts/Installers/Install-YAMLLint.ps1"
]
},
{

View File

@@ -314,7 +314,8 @@
"scripts":[
"{{ template_dir }}/scripts/Installers/Install-PyPy.ps1",
"{{ template_dir }}/scripts/Installers/Install-Toolset.ps1",
"{{ template_dir }}/scripts/Installers/Configure-Toolset.ps1"
"{{ template_dir }}/scripts/Installers/Configure-Toolset.ps1",
"{{ template_dir }}/scripts/Installers/Install-YAMLLint.ps1"
]
},
{

View File

@@ -0,0 +1,3 @@
pip install yamllint
Invoke-PesterTests -TestFile "Tools" -TestName "yamllint"

View File

@@ -270,3 +270,7 @@ function Get-PacmanVersion {
$pacmanVersion = $matches[0]
return "- Pacman $pacmanVersion"
}
function Get-YAMLLintVersion {
yamllint --version
}

View File

@@ -98,7 +98,8 @@ $markdown += New-MDList -Style Unordered -Lines @(
(Get-WinAppDriver),
(Get-ZstdVersion),
(Get-VSWhereVersion),
(Get-7zipVersion)
(Get-7zipVersion),
(Get-YAMLLintVersion)
)
$markdown += New-MDHeader "CLI Tools" -Level 3

View File

@@ -247,6 +247,12 @@ Describe "ServiceFabricSDK" {
}
}
Describe "yamllint" {
It "yamllint" {
"yamllint --version" | Should -ReturnZeroExitCode
}
}
Describe "Svn" {
It "svn" {
"svn --version --quiet" | Should -ReturnZeroExitCode