File tree Expand file tree Collapse file tree 3 files changed +30
-7
lines changed Expand file tree Collapse file tree 3 files changed +30
-7
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,15 @@ stages:
3434 vmImage : vs2017-win2016
3535 Windows_Server2019_PowerShell_Core :
3636 vmImage : windows-2019
37+ pool :
38+ vmImage : $[ variables['vmImage'] ]
39+ steps :
40+ - template : templates/test-pwsh.yaml
41+ - job :
42+ strategy :
43+ matrix :
44+ Windows_Server2019_PowerShell_Core :
45+ vmImage : windows-2019
3746 Windows_Server2016_PowerShell_5_1 :
3847 vmImage : vs2017-win2016
3948 pwsh : false
@@ -43,4 +52,4 @@ stages:
4352 pool :
4453 vmImage : $[ variables['vmImage'] ]
4554 steps :
46- - template : templates/test.yaml
55+ - template : templates/test-powershell .yaml
Original file line number Diff line number Diff line change 1- parameters :
2- - name : pwsh
3- type : boolean
4- default : true
5-
61steps :
72- task : DownloadPipelineArtifact@2
83 displayName : ' Download Pipeline Artifact: out Folder'
138 displayName : ' Test'
149 inputs :
1510 targetType : inline
16- pwsh : $[ parameters.pwsh ]
11+ pwsh : false
1712 script : |
1813 Import-Module .\tools\appveyor.psm1
1914 Invoke-AppveyorTest -CheckoutPath $env:BUILD_SOURCESDIRECTORY
Original file line number Diff line number Diff line change 1+ steps :
2+ - task : DownloadPipelineArtifact@2
3+ displayName : ' Download Pipeline Artifact: out Folder'
4+ inputs :
5+ artifactName : out
6+ targetPath : ' $(Build.SourcesDirectory)/out'
7+ - task : PowerShell@2
8+ displayName : ' Test'
9+ inputs :
10+ targetType : inline
11+ pwsh : true
12+ script : |
13+ Import-Module .\tools\appveyor.psm1
14+ Invoke-AppveyorTest -CheckoutPath $env:BUILD_SOURCESDIRECTORY
15+ - task : PublishTestResults@2
16+ inputs :
17+ testRunner : NUnit
18+ testResultsFiles : ' TestResults.xml'
19+ condition : succeededOrFailed()
You can’t perform that action at this time.
0 commit comments