forked from PlagueHO/LabBuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
74 lines (63 loc) · 2.25 KB
/
azure-pipelines.yml
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
69
70
71
72
73
74
name: $(rev:r)
jobs:
- job: Build_PS_Win2016
pool:
vmImage: vs2017-win2016
steps:
- checkout: self
persistCredentials: true
- powershell: |
.\psake.ps1 -TaskList Test -Verbose
displayName: 'Execute Tests'
env:
githubRepoToken: $(githubRepoToken)
- task: PublishTestResults@2
inputs:
testRunner: 'NUnit'
testResultsFiles: '**/Unit/TestResults.unit.xml'
testRunTitle: 'PS_Win2016_Unit'
displayName: 'Publish Unit Test Results'
condition: in(variables['Agent.JobStatus'], 'Succeeded', 'SucceededWithIssues', 'Failed')
- task: PublishCodeCoverageResults@1
inputs:
summaryFileLocation: '**/Unit/CodeCoverage.xml'
failIfCoverageEmpty: true
displayName: 'Publish Unit Test Code Coverage'
condition: and(in(variables['Agent.JobStatus'], 'Succeeded', 'SucceededWithIssues', 'Failed'), eq(variables['System.PullRequest.IsFork'], false))
- task: PublishTestResults@2
inputs:
testRunner: 'NUnit'
testResultsFiles: '**/Integration/TestResults.integration.xml'
testRunTitle: 'PS_Win2016_Integration'
displayName: 'Publish Integration Test Results'
condition: in(variables['Agent.JobStatus'], 'Succeeded', 'SucceededWithIssues', 'Failed')
- powershell: |
.\psake.ps1 -TaskList Build -Verbose
displayName: 'Build and Stage Module'
env:
githubRepoToken: $(githubRepoToken)
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: 'staging/LabBuilder'
artifactName: 'LabBuilder'
displayName: 'Publish Module'
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: 'staging/zip'
artifactName: 'zip'
displayName: 'Publish Module Zip'
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: 'psakefile.ps1'
artifactName: 'scripts'
displayName: 'Publish PSake File'
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: 'LabBuilder.depend.psd1'
artifactName: 'scripts'
displayName: 'Publish PSDepend File'
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: 'psake.ps1'
artifactName: 'scripts'
displayName: 'Publish Psake Bootstrap File'