-
Notifications
You must be signed in to change notification settings - Fork 71
/
azure-pipelines.yml
36 lines (28 loc) · 1.07 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
name: $(Build.DefinitionName)_$(Date:yyyyMMdd)
resources:
- repo: self
queue:
name: Hosted VS2017
steps:
- powershell: './Invoke-CommandAs.bootstrap.ps1'
displayName: 'Invoke Bootstrap'
- powershell: 'Invoke-Build -Configuration Production -Task Test'
displayName: 'Invoke Pester Tests'
- task: PublishTestResults@2
displayName: 'Publish Test Results'
inputs:
testResultsFormat: NUnit
testResultsFiles: 'TestResults-*.xml'
searchFolder: '$(System.DefaultWorkingDirectory)/TestResults'
- task: PublishCodeCoverageResults@1
displayName: 'Publish Code Coverage'
inputs:
summaryFileLocation: '$(System.DefaultWorkingDirectory)/TestResults/CodeCoverage-*.xml'
reportDirectory: '$(System.DefaultWorkingDirectory)/TestResults'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: Invoke-CommandAs'
inputs:
PathtoPublish: '$(System.DefaultWorkingDirectory)/Invoke-CommandAs'
ArtifactName: Invoke-CommandAs
- powershell: 'Invoke-Build -Configuration Production -Task UpdateManifest, PublishModule'
displayName: 'Publish PowerShell Module'