-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.bak
68 lines (63 loc) · 1.76 KB
/
azure-pipelines.bak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
trigger:
- master
jobs:
- job: test_pwsh_ws2019
displayName: 'Test Module with PowerShell 6 on Windows Server 2019'
pool:
vmImage: windows-2019
steps:
- pwsh: .\test.ps1
displayName: 'Run test.ps1'
- task: PublishTestResults@2
displayName: 'Publish Test Results: PowerShell 6 on Windows Server 2019'
inputs:
testResultsFormat: 'NUnit'
testResultsFiles: '**/testResults.xml'
mergeTestResults: true
failTaskOnFailedTests: false
testRunTitle: 'PS6_WS2019'
- job: test_powershell_ws2019
displayName: 'Test Module with PowerShell 5.1 on Windows Server 2019'
pool:
vmImage: windows-2019
steps:
- powershell: .\test.ps1
displayName: 'Run test.ps1'
- task: PublishTestResults@2
displayName: 'Publish Test Results: PowerShell 5.1 on Windows Server 2019'
inputs:
testResultsFormat: 'NUnit'
testResultsFiles: '**/testResults.xml'
mergeTestResults: true
failTaskOnFailedTests: false
testRunTitle: 'PS5.1_WS2019'
- job: test_pwsh_linux
displayName: 'Test Module with PowerShell 6 on Linux'
pool:
vmImage: ubuntu-latest
steps:
- powershell: .\test.ps1
displayName: 'Run test.ps1'
- task: PublishTestResults@2
displayName: 'Publish Test Results: PowerShell 6 on Linux'
inputs:
testResultsFormat: 'NUnit'
testResultsFiles: '**/testResults.xml'
mergeTestResults: true
failTaskOnFailedTests: false
testRunTitle: 'PS6_Linux'
- job: publish
displayName: 'Publish Module'
pool: windows-2019
dependsOn :
- test_pwsh_ws2019
- test_powershell_ws2019
- test_pwsh_linux
condition: false
steps:
- checkout: self
persistCredentials: true
- powershell: .\publish.ps1
displayName: 'Run publish.ps1'
env:
API_KEY: $(api_key)