Skip to content

Commit 226259d

Browse files
author
Christoph Bergmeister
committed
try split test template
1 parent 93c9450 commit 226259d

File tree

3 files changed

+30
-7
lines changed

3 files changed

+30
-7
lines changed

.azure-pipelines-ci/ci.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff 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

.azure-pipelines-ci/templates/test.yaml renamed to .azure-pipelines-ci/templates/test-powershell.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
parameters:
2-
- name: pwsh
3-
type: boolean
4-
default: true
5-
61
steps:
72
- task: DownloadPipelineArtifact@2
83
displayName: 'Download Pipeline Artifact: out Folder'
@@ -13,7 +8,7 @@ steps:
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
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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()

0 commit comments

Comments
 (0)