-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
43 lines (37 loc) · 1.08 KB
/
Copy pathazure-pipelines.yml
File metadata and controls
43 lines (37 loc) · 1.08 KB
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
trigger:
- master
- dev
pool:
vmImage: 'ubuntu-latest'
name: $(Year:yy).$(DayOfYear).$(Rev:rr)
steps:
- task: replacetokens@3
inputs:
targetFiles: '**/appsettings.json'
encoding: 'auto'
writeBOM: true
actionOnMissing: 'warn'
keepToken: false
tokenPrefix: '#{'
tokenSuffix: '}#'
- task: DotNetCoreCLI@2
inputs:
command: 'test'
projects: '**/*Tests.csproj'
arguments: '/p:CollectCoverage=true /p:CoverletOutputFormat=cobertura /p:CoverletOutput=./MyCoverage/'
publishTestResults: true
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: 'Cobertura'
summaryFileLocation: '$(Build.SourcesDirectory)/**/MyCoverage/coverage.cobertura.xml'
failIfCoverageEmpty: false
- task: DotNetCoreCLI@2
inputs:
command: 'publish'
publishWebProjects: false
arguments: '-c $(build-configuration) -o $(Build.ArtifactStagingDirectory) -r $(windows-os) /p:EnvironmentName=$(env-name)'
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'drop'
publishLocation: 'Container'