-
Notifications
You must be signed in to change notification settings - Fork 2
/
azure-pipelines.yml
75 lines (60 loc) · 1.81 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
75
variables:
- group: powershell-gallery
# Build Pipeline
pool:
# What environment will the build agent run on? (Windows / Linux / macOS)
vmImage: "vs2017-win2016"
trigger:
batch: true
# What branches will trigger a build?
branches:
include:
# Any Pull Request merging into the master branch
- master
steps:
- checkout: self
persistCredentials: true
clean: true
- powershell: |
.\Build\build.ps1 -ResolveDependency -TaskList 'Init'
displayName: "Install Dependencies"
- powershell: |
.\Build\build.ps1 -TaskList 'CombineFunctionsAndStage'
displayName: "Combine PowerShell functions into single module file"
- powershell: |
.\Build\build.ps1 -TaskList 'Analyze'
displayName: "Analyze"
- powershell: |
.\Build\build.ps1 -TaskList 'Test'
displayName: "Test"
- powershell: |
.\Build\build.ps1 -TaskList 'UpdateDocumentation'
displayName: "Update Documentation"
- powershell: |
.\Build\build.ps1 -TaskList 'Deploy'
displayName: "Deploy"
- powershell: |
.\Build\build.ps1 -TaskList 'Commit'
displayName: "Commit Changes"
- powershell: |
.\Build\build.ps1 -TaskList 'CreateBuildArtifact'
displayName: "Create Build Artifact"
- task: PublishTestResults@2
displayName: "Publish Pester Tests"
inputs:
testRunner: "NUnit"
searchFolder: "Artifacts"
testRunTitle: "PesterTests"
condition: always()
- task: PublishBuildArtifacts@1
displayName: "Publish Artifact: PowerShell Module Zipped for offline use"
inputs:
PathtoPublish: Artifacts
ArtifactName: Artifacts
condition: always()
- task: PublishBuildArtifacts@1
displayName: "Publish Artifact: PowerShell Module"
inputs:
PathtoPublish: Staging
ArtifactName: PSModule
condition: always()