-
Notifications
You must be signed in to change notification settings - Fork 272
/
gc-azure-pipelines.yml
73 lines (64 loc) · 2.56 KB
/
gc-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
68
69
70
71
72
73
# Project: src\benchmarks\gc\GC.Infrastructure\GC.Infrastructure.NotebookTests\GC.Infrastructure.NotebookTests.csproj.
# Output: artifacts\bin\GC.Infrastructure.NotebookTests\Debug\net8.0\GC.Infrastructure.NotebookTests.dll
resources:
containers:
- container: ubuntu_x64_build_container
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04
trigger:
branches:
include:
- main
paths:
exclude: # don't trigger if only docs and similar files changed
- docs/*
- '**/*.md'
pr:
branches:
include:
- main
paths:
include:
- src/benchmarks/gc/*
jobs:
# TODO: Add back once we have validated windows.
# - job: GCNotebookValidation_Ubuntu
# pool:
# vmImage: ubuntu-latest
# container: ubuntu_x64_build_container
# TODO: Add.
- job: GCNotebookValidation_Windows
pool:
vmImage: windows-2019
steps:
# Install dotnet. We temporarily need both .NET 8 (for building and running the projects) and .NET 9 (for installing deps).
- task: UseDotNet@2
displayName: Install .NET 8.0
inputs:
version: 8.0.x
- task: UseDotNet@2
displayName: Install .NET 9.0
inputs:
version: 9.0.x
includePreviewVersions: true
- script: dotnet tool restore
- script: dotnet tool install --global dotnet-repl
- script: dotnet build src/benchmarks/gc/GC.Infrastructure/GC.Infrastructure.NotebookTests/GC.Infrastructure.NotebookTests.csproj --configuration Debug --framework net8.0
- script: dotnet build src/benchmarks/gc/GC.Infrastructure/GC.Analysis.API/GC.Analysis.API.csproj --configuration Release --framework net8.0
# Run tests. Template installed from: https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/vstest-v3?view=azure-pipelines
- task: VSTest@3
inputs:
# -------------- #
# Test selection #
# -------------- #
testAssemblyVer2: GC.Infrastructure.NotebookTests.dll
searchFolder: '$(System.DefaultWorkingDirectory)/artifacts/bin/GC.Infrastructure.NotebookTests/Debug/net8.0'
# Uncomment to save results in the future.
# resultsFolder: '$(Agent.TempDirectory)\TestResults' # string. Test results folder. Default: $(Agent.TempDirectory)\TestResults.
# ----------------- #
# Reporting options #
# ----------------- #
testRunTitle: 'GC Notebook Test'
# TODO: Double Check.
platform: 'Windows' ## string. Build platform.
# TODO: Double Check.
configuration: 'Test Notebooks' # string. Build configuration.