34 строки
862 B
YAML
34 строки
862 B
YAML
parameters:
|
|
# Default values
|
|
name: Windows
|
|
queue: 'Hosted VS2017'
|
|
packageArtifacts: true
|
|
publishNugets: true
|
|
|
|
phases:
|
|
- phase: ${{ parameters.name }}
|
|
queue: '${{ parameters.queue }}'
|
|
|
|
variables:
|
|
solution: '**/*.sln'
|
|
buildPlatform: 'Any CPU'
|
|
buildConfiguration: 'Release'
|
|
|
|
steps:
|
|
|
|
- task: NuGetToolInstaller@0
|
|
|
|
- script: dotnet build --configuration $(buildConfiguration) --version-suffix $(build.buildNumber) /warnaserror
|
|
displayName: 'dotnet build $(buildConfiguration)'
|
|
|
|
- task: DotNetCoreCLI@2
|
|
displayName: 'dotnet test UnitTests'
|
|
inputs:
|
|
command: test
|
|
projects: '**/*UnitTests/*.csproj'
|
|
arguments: '--configuration $(buildConfiguration)'
|
|
|
|
- ${{ if eq(parameters.packageArtifacts, 'true') }}:
|
|
- template: package.yml
|
|
parameters:
|
|
publishNugets: ${{ parameters.publishNugets }} |