-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
56 lines (52 loc) · 1.4 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
trigger:
branches:
include:
- master
- azurepipelines
paths:
exclude:
- "docs/*"
- README.md
- .gitignore
- header-mkdocs.yml
- mkdocs.yml
pool:
vmImage: "windows-latest"
stages:
- stage: Test
jobs:
- job: PesterTests
steps:
- task: PowerShell@2
displayName: "Execute Pester Tests"
inputs:
filePath: "build.ps1"
arguments: >
-Task "Test"
pwsh: false
- task: PublishTestResults@2
displayName: "Publish Test Results"
condition: always()
inputs:
testRunTitle: "Test Results for Pester"
buildPlatform: "Windows"
testResultsFormat: NUnit
testResultsFiles: "./pester-tests.xml"
failTaskOnFailedTests: true
- stage: PublishModule
dependsOn: Test
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
jobs:
- job: Publish
displayName: "Publish to PSGallery"
steps:
- task: PowerShell@2
displayName: "Publish Task"
inputs:
filePath: "build.ps1"
arguments: >
-Task "Publish"
pwsh: false
env:
PSGALLERYKEY: $(PSGALLERYKEY)
BuildRelease: $(BUILDRELEASE)