-
Notifications
You must be signed in to change notification settings - Fork 91
/
.vsts-pr.yml
52 lines (49 loc) · 1.42 KB
/
.vsts-pr.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
# Pipeline: https://dev.azure.com/dnceng-public/public/_build?definitionId=231
variables:
- name: _TeamName
value: DotNetCore
- name: Build.Repository.Clean
value: true
trigger:
batch: true
branches:
include:
- main
paths:
exclude:
- "*.md"
stages:
- stage: Build_Windows
displayName: Build Windows
jobs:
- template: /eng/common/templates/jobs/jobs.yml
parameters:
enableMicrobuild: true
jobs:
- job: Windows
pool: # See https://helix.dot.net/ for VM names.
name: NetCore-Public
demands: ImageOverride -equals windows.vs2022preview.amd64.open
variables:
- name: _SignType
value: test
strategy:
matrix:
Release:
_BuildConfig: Release
steps:
- script: eng\common\CIBuild.cmd
-configuration $(_BuildConfig)
-prepareMachine
name: Build
displayName: Build and run tests
condition: succeeded()
- task: PublishTestResults@2
displayName: 'Publish test results'
inputs:
testResultsFormat: xUnit
testResultsFiles: '$(Build.SourcesDirectory)/artifacts/TestResults/**/*.xml'
mergeTestResults: true
searchFolder: $(System.DefaultWorkingDirectory)
testRunTitle: sign unit tests - $(Agent.JobName)
condition: succeededOrFailed()