-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines.yml
54 lines (51 loc) · 1.58 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
trigger:
- main
- development
pool:
vmImage: "ubuntu-latest"
variables:
buildConfiguration: "Release"
steps:
- task: UseDotNet@2
displayName: "SDK"
inputs:
packageType: "sdk"
version: "6.0.100"
- task: DotNetCoreCLI@2
displayName: "Restore"
inputs:
command: "restore"
feedsToUse: "select"
- task: DotNetCoreCLI@2
displayName: "Build"
inputs:
command: "build"
arguments: "--configuration $(buildConfiguration)"
projects: "**/*.csproj"
- task: DotNetCoreCLI@2
displayName: "Test"
inputs:
command: "test"
arguments: "--configuration $(BuildConfiguration) /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura /p:CoverletOutput=$(Build.SourcesDirectory)/TestResults/Coverage/"
projects: "**/*.csproj"
- task: PublishCodeCoverageResults@1
displayName: "Publish Coverage"
inputs:
codeCoverageTool: "Cobertura"
summaryFileLocation: "$(Build.SourcesDirectory)/TestResults/Coverage/coverage.cobertura.xml"
failIfCoverageEmpty: true
- task: DotNetCoreCLI@2
inputs:
command: "pack"
packagesToPack: "**/*.csproj"
nobuild: true
includesymbols: true
includesource: true
versioningScheme: byPrereleaseNumber
- task: NuGetCommand@2
displayName: "Push"
inputs:
command: "push"
packagesToPush: "$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg"
nuGetFeedType: "internal"
publishVstsFeed: "9566de23-5df9-4be2-b676-8ac0e1cbd609/45a7e446-1e14-44f0-a847-4c60611a0413"