forked from dotnet/xharness
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines-public.yml
169 lines (148 loc) · 5.14 KB
/
azure-pipelines-public.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
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
variables:
- template: /eng/common-variables.yml
- template: /eng/common/templates/variables/pool-providers.yml
# CI and PR triggers
trigger:
batch: true
branches:
include:
- main
- release/*
pr:
branches:
include:
- main
- release/*
# Build
stages:
- stage: Build_Windows_NT
displayName: Build Windows
jobs:
- template: /eng/common/templates/jobs/jobs.yml
parameters:
enableTelemetry: true
enablePublishBuildArtifacts: true
enableMicrobuild: true
enablePublishUsingPipelines: true
enablePublishBuildAssets: true
helixRepo: dotnet/xharness
jobs:
- job: Windows_NT
pool:
name: $(DncEngPublicBuildPool)
demands: ImageOverride -equals 1es-windows-2022-open
strategy:
matrix:
Release:
_BuildConfig: Release
Debug:
_BuildConfig: Debug
steps:
- script: eng\common\CIBuild.cmd
-configuration $(_BuildConfig)
-prepareMachine
name: Build
displayName: Build and run tests
condition: succeeded()
- task: PublishTestResults@2
displayName: 'Publish Unit Test Results'
inputs:
testResultsFormat: xUnit
testResultsFiles: '$(Build.SourcesDirectory)/artifacts/TestResults/**/*.xml'
mergeTestResults: true
searchFolder: $(system.defaultworkingdirectory)
testRunTitle: XHarness unit tests - $(Agent.JobName)
condition: succeededOrFailed()
- stage: Build_OSX
displayName: Build OSX
dependsOn:
jobs:
- template: /eng/common/templates/jobs/jobs.yml
parameters:
enableTelemetry: true
enablePublishBuildArtifacts: true
enableMicrobuild: true
enablePublishUsingPipelines: true
enablePublishBuildAssets: true
helixRepo: dotnet/xharness
jobs:
- job: OSX
pool:
vmImage: macOS-11
strategy:
matrix:
Release:
_BuildConfig: Release
Debug:
_BuildConfig: Debug
steps:
- script: eng/common/cibuild.sh
--configuration $(_BuildConfig)
--prepareMachine
name: Build
displayName: Build and run tests
condition: succeeded()
- publish: $(Build.SourcesDirectory)/artifacts/packages/$(_BuildConfig)/Shipping/Microsoft.DotNet.XHarness.CLI.9.0.0-ci.nupkg
artifact: Microsoft.DotNet.XHarness.CLI.$(_BuildConfig)
displayName: Publish XHarness CLI for Helix Testing
condition: and(succeeded(), eq(variables['_BuildConfig'], 'Debug'))
- task: PublishTestResults@2
displayName: 'Publish Unit Test Results'
inputs:
testResultsFormat: xUnit
testResultsFiles: '$(Build.SourcesDirectory)/artifacts/TestResults/**/*.xml'
mergeTestResults: true
searchFolder: $(system.defaultworkingdirectory)
testRunTitle: XHarness unit tests - $(Agent.JobName)
condition: succeededOrFailed()
# E2E tests
- template: eng/e2e-test.yml
parameters:
name: E2E_Android_Simulators
displayName: Android - Simulators
testProject: $(Build.SourcesDirectory)/tests/integration-tests/Android/Simulator.Tests.proj
- template: eng/e2e-test.yml
parameters:
name: E2E_Android_Devices
displayName: Android - Devices
testProject: $(Build.SourcesDirectory)/tests/integration-tests/Android/Device.Tests.proj
- template: eng/e2e-test.yml
parameters:
name: E2E_Android_Manual_Commands
displayName: Android - Manual Commands
testProject: $(Build.SourcesDirectory)/tests/integration-tests/Android/Commands.Tests.proj
- template: eng/e2e-test.yml
parameters:
name: E2E_Apple_Simulators
displayName: Apple - Simulators
testProject: $(Build.SourcesDirectory)/tests/integration-tests/Apple/Simulator.Tests.proj
- template: eng/e2e-test.yml
parameters:
name: E2E_iOS_Devices
displayName: Apple - iOS devices
testProject: $(Build.SourcesDirectory)/tests/integration-tests/Apple/Device.iOS.Tests.proj
- template: eng/e2e-test.yml
parameters:
name: E2E_tvOS_Devices
displayName: Apple - tvOS devices
testProject: $(Build.SourcesDirectory)/tests/integration-tests/Apple/Device.tvOS.Tests.proj
- template: eng/e2e-test.yml
parameters:
name: E2E_Apple_Simulator_Commands
displayName: Apple - Simulator Commands
testProject: $(Build.SourcesDirectory)/tests/integration-tests/Apple/Simulator.Commands.Tests.proj
- template: eng/e2e-test.yml
parameters:
name: E2E_Apple_Device_Commands
displayName: Apple - Device Commands
testProject: $(Build.SourcesDirectory)/tests/integration-tests/Apple/Device.Commands.Tests.proj
- template: eng/e2e-test.yml
parameters:
name: E2E_Apple_Simulator_Mgmt
displayName: Apple - Simulator management
testProject: $(Build.SourcesDirectory)/tests/integration-tests/Apple/SimulatorInstaller.Tests.proj
- template: eng/e2e-test.yml
parameters:
name: E2E_WASM
displayName: WASM
testProject: $(Build.SourcesDirectory)/tests/integration-tests/WASM/WASM.Helix.SDK.Tests.proj