-
Notifications
You must be signed in to change notification settings - Fork 177
/
azure-pipelines.yml
66 lines (55 loc) · 1.46 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
# Add steps that publish symbols, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
trigger:
- master
- develop
- release/*
- feature/*
pool:
vmImage: 'windows-2019'
variables:
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
isBuildServer: 'true'
steps:
- task: UseGitVersion@5
name: gv
displayName: GitVersion
inputs:
versionSpec: '5.x'
additionalArguments: '/output BuildServer'
- task: DotNetCoreCLI@2
displayName: dotnet build
inputs:
command: build
projects: 'Bot.Builder.Community.sln'
versioningScheme: byEnvVar
versionEnvVar: gv.GitVersion.NuGetVersion
arguments: "--configuration $(buildConfiguration)"
- task: DotNetCoreCLI@2
displayName: dotnet test
inputs:
command: test
projects: 'Bot.Builder.Community.sln'
configuration: '$(buildConfiguration)'
nobuild: true
condition: succeeded()
- task: DotNetCoreCLI@2
displayName: Restore
inputs:
command: restore
projects: 'Bot.Builder.Community.sln'
- task: DotNetCoreCLI@2
displayName: dotnet pack
inputs:
packagesToPack: 'libraries/*/*.csproj'
command: pack
packDirectory: '$(Build.ArtifactStagingDirectory)/packages'
configuration: '$(buildConfiguration)'
versioningScheme: byEnvVar
versionEnvVar: gv.GitVersion.NuGetVersion
nobuild: true
condition: succeeded()
- task: PublishBuildArtifacts@1
condition: succeeded()