forked from dtrader007/core
-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines.yml
66 lines (56 loc) · 1.66 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
60
61
62
63
64
65
66
name: $(Date:yyyyMMdd)$(Rev:rr)
resources:
- repo: self
trigger:
batch: 'true'
branches:
include:
- master
pool:
vmImage: 'windows-2019'
steps:
- task: UseDotNet@2
inputs:
packageType: 'sdk'
useGlobalJson: true
- task: NuGetToolInstaller@1
inputs:
versionSpec: '5.1.0'
- 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.netcoreapp3.1.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'