generated from ivanpaulovich/clean-architecture-manga
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
45 lines (39 loc) · 1.35 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
pool:
vmImage: "ubuntu-latest"
variables:
solution: "Clean-Architecture-Manga.sln"
buildPlatform: "Any CPU"
buildConfiguration: "Release"
DOTNET_CLI_TELEMETRY_OPTOUT: "true"
steps:
- task: UseDotNet@2
displayName: "Use .NET Core sdk"
inputs:
packageType: sdk
version: 3.1.300
installationPath: $(Agent.ToolsDirectory)/dotnet
- task: DotNetCoreCLI@2
displayName: "Compile VS solution"
inputs:
command: "build"
projects: "$(solution)"
arguments: '--configuration "$(buildConfiguration)"'
- task: DotNetCoreCLI@2
displayName: "Test"
inputs:
command: test
projects: "$(solution)"
arguments: '"-p:CollectCoverage=true" "-p:CoverletOutputFormat=cobertura"'
nobuild: true
- task: CmdLine@2
displayName: Merge code-coverage files
inputs:
script: |
dotnet tool install -g dotnet-reportgenerator-globaltool
reportgenerator "-reports:./test/**/coverage.cobertura.xml" "-reporttypes:Cobertura" "-targetdir:./coverreport"
- task: PublishCodeCoverageResults@1
displayName: "Generate code-coverage HTML report"
inputs:
codeCoverageTool: "Cobertura"
summaryFileLocation: "./coverreport/Cobertura.xml"
failIfCoverageEmpty: true