-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
46 lines (39 loc) · 1.19 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
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
branches:
include:
- '*' # Trigger builds on all branches
pr:
branches:
include:
- master
pool:
vmImage: 'windows-latest'
steps:
- task: PowerShell@2
displayName: 'PowerShell Build Script'
inputs:
targetType: filePath
filePath: 'Build\build.ps1'
- task: PublishTestResults@2
displayName: 'Publish Test Results/TestResults_PS*.xml'
inputs:
testResultsFormat: NUnit
testResultsFiles: 'Build/TestResults_PS*.xml'
condition: succeededOrFailed()
- task: reportgenerator@4
displayName: ReportGenerator
inputs:
reports: 'Build/CodeCoverage_PS*.xml'
reporttypes: 'HtmlInline_AzurePipelines'
sourcedirs: .
condition: not(contains(variables['BHCommitMessage'],'!skipcodecoverage'))
- task: PublishCodeCoverageResults@1
displayName: 'Publish code coverage from Build/CodeCoverage_PS*.xml'
inputs:
summaryFileLocation: 'Build/CodeCoverage_PS*.xml'
reportDirectory: coveragereport
condition: not(contains(variables['BHCommitMessage'],'!skipcodecoverage'))