Skip to content

Commit

Permalink
Merge pull request #47 from Readify/pester
Browse files Browse the repository at this point in the history
Do not upgrade to Pester 5 until the tests are ready.
  • Loading branch information
RobFaie authored May 28, 2020
2 parents fb91d21 + 30af05d commit da35b06
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit da35b06

Please sign in to comment.