File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change 1
1
pool :
2
2
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'
9
5
6
+ steps :
10
7
- task : DotNetCoreCLI@2
11
- displayName : ' dotnet restore '
8
+ displayName : Restore
12
9
inputs :
13
10
command : restore
14
11
projects : ' **/*.csproj'
15
12
16
13
- task : DotNetCoreCLI@2
17
- displayName : ' dotnet build '
14
+ displayName : Build
18
15
inputs :
19
- projects : ' **/*.sln'
16
+ projects : ' **/*.csproj'
17
+ arguments : ' --configuration $(BuildConfiguration)'
20
18
21
19
- task : DotNetCoreCLI@2
22
- displayName : ' dotnet test '
20
+ displayName : Test
23
21
inputs :
24
22
command : test
25
23
projects : ' **/*.csproj'
24
+ arguments : ' --configuration $(BuildConfiguration) --collect "Code coverage"'
You can’t perform that action at this time.
0 commit comments