-
Notifications
You must be signed in to change notification settings - Fork 9
/
azure-pipelines.yml
68 lines (66 loc) · 1.72 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
trigger:
none
jobs:
- job: BuildCqrsSdk
displayName: Build CQRS SDK
pool:
vmImage: ubuntu-latest
variables:
BuildConfiguration: 'Release'
BuildPlatform: 'any cpu'
steps:
- task: NuGetToolInstaller@1
displayName: Install NuGet 5.5.0
inputs:
versionSpec: '5.5.0'
checkLatest: true
- task: UseDotNet@2
displayName: Use .NET Core 5.0.x
inputs:
packageType: 'sdk'
version: '5.0.x'
- task: NuGetCommand@2
displayName: Restore Solution
inputs:
command: 'restore'
restoreSolution: 'src/CQRS.Mediatr.Lite.sln'
feedsToUse: 'select'
- task: DotNetCoreCLI@2
displayName: Build Library Projects
inputs:
command: 'build'
projects: 'src/sdk/CQRS.Mediatr.Lite.SDK.csproj'
- task: DotNetCoreCLI@2
displayName: Test Projects
inputs:
command: 'test'
projects: '**/*.Tests.csproj'
- job: BuildSample
displayName: Build Sample
pool:
vmImage: ubuntu-latest
variables:
BuildConfiguration: 'Release'
BuildPlatform: 'any cpu'
steps:
- task: NuGetToolInstaller@1
displayName: Install NuGet 5.5.0
inputs:
versionSpec: '5.5.0'
checkLatest: true
- task: UseDotNet@2
displayName: Use .NET Core 5.0.x
inputs:
packageType: 'sdk'
version: '5.0.x'
- task: NuGetCommand@2
displayName: Restore Solution
inputs:
command: 'restore'
restoreSolution: 'samples/CQRS.Mediatr.Lite.Samples/CQRS.Mediatr.Lite.Samples.sln'
feedsToUse: 'select'
- task: DotNetCoreCLI@2
displayName: Build Library Projects
inputs:
command: 'build'
projects: 'samples/CQRS.Mediatr.Lite.Samples/CQRS.Mediatr.Lite.Samples.NetCoreApi/CQRS.Mediatr.Lite.Samples.NetCoreApi.csproj'