-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathazure-pipelines.yml
63 lines (51 loc) · 1.56 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
# 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:
# Build Tasks
- 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 'CreateBuildArtifact'
displayName: "Create Build Artifact"
# Publish Tasks
- 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()