Skip to content

Commit 4cac5b8

Browse files
committed
Initial Azure Pipelines build configuration
1 parent 59adc83 commit 4cac5b8

2 files changed

Lines changed: 41 additions & 0 deletions

File tree

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
root = true
22

3+
[*.yml]
4+
indent_style = space
5+
indent_size = 2
6+
37
[*.cs]
48
charset = utf-8-bom
59
insert_final_newline = true

azure-pipelines.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
pool:
2+
name: Azure Pipelines
3+
demands:
4+
- msbuild
5+
- visualstudio
6+
- vstest
7+
8+
parameters:
9+
solution: StyleCopAnalyzers.sln
10+
11+
jobs:
12+
- job: Build and Test
13+
variables:
14+
BuildPlatform: AnyCPU
15+
strategy:
16+
matrix:
17+
Debug:
18+
BuildConfiguration: Debug
19+
Release:
20+
BuildConfiguration: Release
21+
steps:
22+
- task: NuGetToolInstaller@0
23+
displayName: 'Use NuGet 4.4.1'
24+
inputs:
25+
versionSpec: 4.4.1
26+
27+
- task: NuGetCommand@2
28+
displayName: 'NuGet restore'
29+
inputs:
30+
restoreSolution: '$(Parameters.solution)'
31+
32+
- task: VSBuild@1
33+
displayName: 'Build solution StyleCopAnalyzers.sln'
34+
inputs:
35+
solution: '$(Parameters.solution)'
36+
platform: '$(BuildPlatform)'
37+
configuration: '$(BuildConfiguration)'

0 commit comments

Comments
 (0)