-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathazure-pipelines.other-projects.yml
More file actions
35 lines (32 loc) · 1.25 KB
/
azure-pipelines.other-projects.yml
File metadata and controls
35 lines (32 loc) · 1.25 KB
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
name: other-projects.$(date:yyyyMMdd)$(rev:.r)
pool:
vmImage: 'windows-latest'
variables:
buildConfiguration: 'Release'
enableLegacyVersionTests: false
steps:
# Install .NET SDK
- task: UseDotNet@2
inputs:
packageType: 'sdk'
version: '10.0.x'
displayName: 'Install SDK 10.0.x'
# Build nuget packages
- pwsh: |
cd nuget
./Update.ps1
displayName: 'Build Silverback packages'
- pwsh: |
dotnet nuget add source "$(pwd)/nuget" --name local
echo "$(pwd)/nuget added as package source"
displayName: 'Set package source'
# Build
- script: |
dotnet build ./samples/Silverback.Samples.sln --configuration $(buildConfiguration) | tee build.log && grep -q 'Build succeeded' build.log
displayName: 'Build Samples ($(buildConfiguration))'
- script: |
dotnet build ./benchmarks/SilverbackBenchmarks.sln --configuration $(buildConfiguration) -warnaserror | tee build.log && grep -q 'Build succeeded' build.log
displayName: 'Build Benchmarks ($(buildConfiguration))'
- script: |
dotnet build ./testbench/Silverback.TestBench.sln --configuration $(buildConfiguration) -warnaserror | tee build.log && grep -q 'Build succeeded' build.log
displayName: 'Build Test Bench ($(buildConfiguration))'