-
Notifications
You must be signed in to change notification settings - Fork 6
/
azure-pipelines.yml
43 lines (38 loc) · 937 Bytes
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
strategy:
matrix:
windows:
imageName: 'windows-latest'
linux:
imageName: 'ubuntu-latest'
mac:
imageName: 'macos-latest'
trigger:
branches:
include:
- master
- develop
pool:
vmImage: $(imageName)
variables:
buildConfiguration: 'Release'
steps:
- task: UseDotNet@2
displayName: 'Install .NET SDK 6.0'
inputs:
packageType: 'sdk'
version: '6.0.x'
- task: DotNetCoreCLI@2
displayName: 'Restore Nuget Pacakges'
inputs:
command: 'restore'
projects: '**/*.csproj'
feedsToUse: 'select'
- script: dotnet build --configuration $(buildConfiguration)
displayName: 'Build Projects'
- task: DotNetCoreCLI@2
displayName: 'Run Tests'
inputs:
command: 'test'
projects: '**/*.Tests/*.csproj'
arguments: '--configuration $(buildConfiguration) --logger="console;verbosity=detailed"'