Skip to content

Commit 96ffc6c

Browse files
committed
Build file
1 parent 73ca280 commit 96ffc6c

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

azure-pipelines.yaml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,24 @@
11
pool:
22
name: Azure Pipelines
3-
steps:
4-
- task: NuGetCommand@2
5-
displayName: 'NuGet restore'
6-
inputs:
7-
feedsToUse: config
8-
nugetConfigPath: src/Nuget.config
3+
variables:
4+
BuildConfiguration: 'Release'
95

6+
steps:
107
- task: DotNetCoreCLI@2
11-
displayName: 'dotnet restore'
8+
displayName: Restore
129
inputs:
1310
command: restore
1411
projects: '**/*.csproj'
1512

1613
- task: DotNetCoreCLI@2
17-
displayName: 'dotnet build'
14+
displayName: Build
1815
inputs:
19-
projects: '**/*.sln'
16+
projects: '**/*.csproj'
17+
arguments: '--configuration $(BuildConfiguration)'
2018

2119
- task: DotNetCoreCLI@2
22-
displayName: 'dotnet test'
20+
displayName: Test
2321
inputs:
2422
command: test
2523
projects: '**/*.csproj'
24+
arguments: '--configuration $(BuildConfiguration) --collect "Code coverage"'

0 commit comments

Comments
 (0)