-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
37 lines (32 loc) · 909 Bytes
/
azure-pipelines.yml
File metadata and controls
37 lines (32 loc) · 909 Bytes
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
trigger:
- master
pr:
- master
variables:
- group: 'Library Common Vars'
pool:
vmImage: 'ubuntu-latest'
steps:
- task: PowerShell@2
displayName: Verify PR
condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest'))
inputs:
filePath: 'build.ps1'
arguments: '-Target Verify-PR'
pwsh: true
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
- task: PublishCodeCoverageResults@1
displayName: Publish Code Coverage
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: '**/TestResults/*/coverage.cobertura.xml'
- task: PowerShell@2
displayName: Push Client Package to Nuget
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
inputs:
filePath: 'build.ps1'
arguments: '-Target PushToNuget'
pwsh: true
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)