-
Notifications
You must be signed in to change notification settings - Fork 7
/
azure-pipelines.yml
59 lines (51 loc) · 1.55 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
name: $(Date:yyyyMMdd)$(Rev:rr)
resources:
- repo: self
trigger:
batch: 'true'
branches:
include:
- master
steps:
- task: UseDotNet@2
inputs:
packageType: 'sdk'
useGlobalJson: true
- task: PowerShell@2
displayName: 'Run Cake PowerShell Bootstrapper'
inputs:
filePath: 'build.ps1'
arguments: '-Verbosity Diagnostic -PrereleaseNumber=$(Build.BuildNumber)'
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
- task: PublishTestResults@2
displayName: 'Publish .NET test results'
condition: succeededOrFailed()
inputs:
testResultsFormat: 'VSTest'
testResultsFiles: '**/*.trx'
mergeTestResults: true
testRunTitle: 'C# Unit Tests'
- task: PublishCodeCoverageResults@1
displayName: 'publish .NET coverage results'
condition: succeededOrFailed()
inputs:
codeCoverageTool: 'cobertura'
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.cobertura.xml'
- task: CopyFiles@2
displayName: Copy NuGet package to Artifact Staging Directory
inputs:
Contents: artifacts/**
TargetFolder: $(Build.ArtifactStagingDirectory)
flattenFolders: true
- task: DotNetCoreCLI@2
displayName: Publish NuGet package to cmdty feed
inputs:
command: 'push'
packagesToPush: '$(Build.ArtifactStagingDirectory)/*.nupkg'
nuGetFeedType: 'internal'
publishVstsFeed: '18c506cf-ff39-47d5-8884-0ea703f25523'
- task: PublishBuildArtifacts@1
displayName: 'publish artifacts'
inputs:
ArtifactName: 'drop'