From 30af05df6a337ced4d2cce76b9bbe8a7cb3d8a15 Mon Sep 17 00:00:00 2001 From: Robert McLeod Date: Thu, 28 May 2020 16:57:45 +1000 Subject: [PATCH] Do not upgrade to Pester 5 until the tests are ready. --- azure-pipelines.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 7138073..68c6d00 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -72,7 +72,7 @@ stages: Get-ChildItem -Path '$(Pipeline.Workspace)' -Directory | Invoke-ScriptAnalyzer -EnableExit | Format-Table -AutoSize displayName: Script Analyzer - pwsh: | - Save-Module -Name Pester -Path '.' -Repository PSGallery -Confirm:$false + Save-Module -Name Pester -Path '.' -MaximumVersion 4.999.999 -Repository PSGallery -Confirm:$false Import-Module -Name './Pester/' Set-Location -Path '$(Pipeline.Workspace)' Invoke-Pester -EnableExit -OutputFile "$(System.DefaultWorkingDirectory)/Test-Pester-Mac.xml" -OutputFormat NUnitXML @@ -101,7 +101,7 @@ stages: Get-ChildItem -Path '$(Pipeline.Workspace)' -Directory | Invoke-ScriptAnalyzer -EnableExit | Format-Table -AutoSize displayName: Script Analyzer - pwsh: | - Save-Module -Name Pester -Path '.' -Repository PSGallery -Confirm:$false + Save-Module -Name Pester -Path '.' -MaximumVersion 4.999.999 -Repository PSGallery -Confirm:$false Import-Module -Name './Pester/' Set-Location -Path '$(Pipeline.Workspace)' Invoke-Pester -EnableExit -OutputFile "$(System.DefaultWorkingDirectory)/Test-Pester-Ubuntu.xml" -OutputFormat NUnitXML @@ -130,7 +130,7 @@ stages: Get-ChildItem -Path '$(Pipeline.Workspace)' -Directory | Invoke-ScriptAnalyzer -EnableExit | Format-Table -AutoSize displayName: Script Analyzer - pwsh: | - Save-Module -Name Pester -Path '.' -Repository PSGallery -Confirm:$false + Save-Module -Name Pester -Path '.' -MaximumVersion 4.999.999 -Repository PSGallery -Confirm:$false Import-Module -Name './Pester/' Set-Location -Path '$(Pipeline.Workspace)' Invoke-Pester -EnableExit -OutputFile "$(System.DefaultWorkingDirectory)/Test-Pester-Win2019.xml" -OutputFormat NUnitXML @@ -159,7 +159,7 @@ stages: Get-ChildItem -Path '$(Pipeline.Workspace)' -Directory | Invoke-ScriptAnalyzer -EnableExit | Format-Table -AutoSize displayName: Script Analyzer - powershell: | - Save-Module -Name Pester -Path '.' -Repository PSGallery -Confirm:$false + Save-Module -Name Pester -Path '.' -MaximumVersion 4.999.999 -Repository PSGallery -Confirm:$false Resolve-Path -Path './Pester/*/Pester.psd1' | Import-Module Set-Location -Path '$(Pipeline.Workspace)' Invoke-Pester -EnableExit -OutputFile "$(System.DefaultWorkingDirectory)/Test-Pester-Win2016.xml" -OutputFormat NUnitXML