-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy pathazure-pipelines.yml
58 lines (55 loc) · 1.24 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
trigger:
branches:
include:
- master
paths:
exclude:
- "*.md"
- "docs/*"
- "version.json"
strategy:
matrix:
linux:
imageName: 'ubuntu-latest'
mac:
imageName: 'macOS-latest'
windows:
imageName: 'windows-latest'
pool:
vmImage: $(imageName)
steps:
- checkout: self
submodules: true
- task: UseDotNet@2
displayName: 'Use .NET Core sdk'
inputs:
packageType: sdk
useGlobalJson: true
- task: DotNetCoreCLI@2
inputs:
command: 'custom'
custom: 'tool'
arguments: 'restore'
- task: DotNetCoreCLI@2
inputs:
command: 'custom'
custom: 'cake'
env:
CODECOV_REPO_TOKEN: $(CODECOV_REPO_TOKEN)
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testRunTitle: 'Tests $(Agent.JobName)'
testResultsFormat: 'VSTest'
testResultsFiles: '**/*.trx'
mergeTestResults: true
- task: PublishCodeCoverageResults@1
condition: succeededOrFailed()
inputs:
codeCoverageTool: 'Cobertura'
summaryFileLocation: 'coverage-results/*.cobertura.xml'
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: 'artifacts/'
ArtifactName: 'drop'
publishLocation: 'Container'