Skip to content

Commit 0f7d972

Browse files
committed
Add Azure Pipelines build configuration
1 parent 0dcb822 commit 0f7d972

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,7 @@ indent_size = 2
3838
[*.sln]
3939
charset = utf-8-bom
4040
indent_style = tab
41+
42+
# YAML
43+
[*.yml]
44+
indent_size = 2

azure-pipelines.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: $(Build.DefinitionName)_$(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:.r)
2+
3+
trigger:
4+
batch: true
5+
6+
pool:
7+
vmImage: 'windows-2019'
8+
9+
variables:
10+
solution: 'src/Draftable.CompareAPI.Client.sln'
11+
nugetConfig: 'NuGet.config'
12+
buildPlatform: 'Any CPU'
13+
buildConfiguration: 'Release'
14+
15+
steps:
16+
- task: NuGetToolInstaller@1
17+
18+
- task: NuGetCommand@2
19+
inputs:
20+
command: 'restore'
21+
restoreSolution: '$(solution)'
22+
feedsToUse: 'config'
23+
nugetConfigPath: '$(nugetConfig)'
24+
25+
- task: VSBuild@1
26+
inputs:
27+
solution: '$(solution)'
28+
vsVersion: '16.0'
29+
platform: '$(buildPlatform)'
30+
configuration: '$(buildConfiguration)'
31+
maximumCpuCount: true

0 commit comments

Comments
 (0)