-
Notifications
You must be signed in to change notification settings - Fork 121
Expand file tree
/
Copy pathazure-pipelines-PR.yml
More file actions
107 lines (101 loc) · 2.9 KB
/
Copy pathazure-pipelines-PR.yml
File metadata and controls
107 lines (101 loc) · 2.9 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
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
trigger:
- main
pr:
- main
variables:
- template: eng/common-variables.yml
stages:
- stage: build
displayName: Build
jobs:
- template: /eng/common/templates/jobs/jobs.yml
parameters:
artifacts:
publish:
artifacts: true
manifests: true
enableMicrobuild: true
workspace:
clean: all
jobs:
- job: Windows
timeoutInMinutes: 90
pool:
name: NetCore-Public
demands: ImageOverride -equals Windows.vs2022.amd64.open
preSteps:
- checkout: self
clean: true
steps:
- script: Build.cmd
-test
-sign
-configuration $(_BuildConfig)
-bl
$(_InternalBuildArgs)
displayName: Test and Sign
- task: PublishTestResults@2
displayName: Publish Test Results
inputs:
testResultsFormat: xUnit
testResultsFiles: 'artifacts/TestResults/$(_BuildConfig)/*.xml'
testRunTitle: $(Agent.JobName)
mergeTestResults: true
condition: always()
- task: CopyFiles@2
displayName: Gather logs for publish to artifacts
inputs:
SourceFolder: 'artifacts/log'
Contents: '**'
TargetFolder: '$(Build.ArtifactStagingDirectory)/artifacts/log'
continueOnError: true
condition: always()
- job: Linux
timeoutInMinutes: 30
pool:
name: NetCore-Public
demands: ImageOverride -equals build.ubuntu.2204.amd64.open
steps:
- checkout: self
displayName: Checkout Self
clean: true
- script: ./build.sh --test --configuration $(_BuildConfig) -bl
displayName: Run Tests
- task: PublishTestResults@2
displayName: Publish Test Results
inputs:
testResultsFormat: xUnit
testResultsFiles: 'artifacts/TestResults/$(_BuildConfig)/*.xml'
testRunTitle: $(Agent.JobName)
mergeTestResults: true
condition: always()
- task: PublishBuildArtifacts@1
displayName: Publish Logs
inputs:
PathtoPublish: artifacts/log
ArtifactName: Logs_$(Agent.JobName)
condition: always()
- job: MacOS
timeoutInMinutes: 45
pool:
vmImage: 'macOS-latest'
steps:
- checkout: self
displayName: Checkout Self
clean: true
- script: ./build.sh --test --configuration $(_BuildConfig) -bl
displayName: Run Tests
- task: PublishTestResults@2
displayName: Publish Test Results
inputs:
testResultsFormat: xUnit
testResultsFiles: 'artifacts/TestResults/$(_BuildConfig)/*.xml'
testRunTitle: $(Agent.JobName)
mergeTestResults: true
condition: always()
- task: PublishBuildArtifacts@1
displayName: Publish Logs
inputs:
PathtoPublish: artifacts/log
ArtifactName: Logs_$(Agent.JobName)
condition: always()