-
Notifications
You must be signed in to change notification settings - Fork 175
/
azure-pipelines.yml
50 lines (47 loc) · 1.36 KB
/
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
44
45
46
47
48
49
50
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
variables:
sln: './src/minsk.sln'
tests: './src/Minsk.Tests/Minsk.Tests.csproj'
samples: './samples/samples.sln'
parameters:
- name: operatingSystems
type: object
default:
- name: Ubuntu
vmImage: ubuntu-latest
- name: Windows
vmImage: windows-latest
- name: macOS
vmImage: macOS-latest
- name: configurations
type: object
default:
- Debug
- Release
jobs:
- ${{ each c in parameters.configurations }}:
- ${{ each os in parameters.operatingSystems }}:
- job: job${{ os.name }}${{ c }}
displayName: ${{ c }} (${{ os.name }})
pool:
vmImage: ${{ os.vmImage }}
steps:
- task: DotNetCoreCLI@2
displayName: Build minsk (${{ os.name }} ${{ c }})
inputs:
command: build
projects: $(sln)
arguments: --configuration ${{ c }}
- task: DotNetCoreCLI@2
displayName: Run tests (${{ os.name }} ${{ c }})
inputs:
command: test
projects: $(tests)
arguments: --configuration ${{ c }}
publishTestResults: true
- task: DotNetCoreCLI@2
displayName: Build samples (${{ os.name }} ${{ c }})
inputs:
command: build
projects: $(samples)
arguments: --configuration ${{ c }}