-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
71 lines (61 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
trigger:
branches:
include:
- master
- develop
- refs/tags/v*
- release/*
- feature/*
- hotfix/*
pool:
vmImage: 'windows-latest'
variables:
Solution: 'OpenMatch.csharp.sln'
BuildConfiguration: 'Release'
steps:
- task: UseDotNet@2
inputs:
version: '6.0.x'
packageType: runtime
- task: DotNetCoreCLI@2
name: Restore
inputs:
command: 'restore'
projects: |
$(Solution)
- task: DotNetCoreCLI@2
name: Build
inputs:
command: 'build'
projects: |
$(Solution)
arguments: -c $(BuildConfiguration)
- task: DotNetCoreCLI@2
name: Test
inputs:
command: 'test'
projects: |
$(Solution)
arguments: -c $(BuildConfiguration) --collect "Code coverage"
- task: DotNetCoreCLI@2
inputs:
command: publish
projects: src/OpenMatch/OpenMatch.csproj
arguments: --configuration $(BuildConfiguration) --output $(Build.ArtifactStagingDirectory)/OpenMatch.Api
publishWebProjects: false
zipAfterPublish: false
- task: PublishBuildArtifacts@1
inputs:
pathToPublish: $(Build.ArtifactStagingDirectory)/OpenMatch.Api
artifactName: Build Output
- task: DotNetCoreCLI@2
name: Pack
inputs:
command: pack
packagesToPack: src/OpenMatch/OpenMatch.csproj
arguments: -c $(BuildConfiguration)
packDirectory: $(Build.ArtifactStagingDirectory)/nuget
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)/nuget
artifactName: Nuget package