@@ -173,84 +173,3 @@ stages:
173
173
displayName : Publish React Native iOS Instrumented Test Results
174
174
175
175
- template : explicitly-defined-final-tasks.yml
176
-
177
- - job : ReactNative_CI_iOS_e2e_tests
178
- dependsOn : ' ReactNative_CI_iOS_build'
179
-
180
- ${{ if eq(parameters.is1ES, false) }} :
181
- pool :
182
- vmImage : ' macOS-14'
183
- ${{ if eq(parameters.is1ES, true) }} :
184
- pool :
185
- name : ' Azure Pipelines'
186
- image : ' macOS-14'
187
- os : ' macOS'
188
-
189
- timeoutInMinutes : 90
190
-
191
- steps :
192
- - template : flex-downloadPipelineArtifact.yml
193
- parameters :
194
- StepName : ' Download Pipeline Artifact - ios_pod'
195
- ArtifactName : ' ios_pod'
196
- TargetPath : ' $(Build.BinariesDirectory)/ios_pod'
197
-
198
- - template : use-xcode-version.yml
199
-
200
- - task : NodeTool@0
201
- inputs :
202
- versionSpec : ' 22.x'
203
-
204
- - template : ../stages/jobs/steps/react-native-bootstrap-steps.yml
205
-
206
- - script : |
207
- ORT_C_LOCAL_POD_PATH=$(Build.BinariesDirectory)/ios_pod/onnxruntime-c \
208
- pod install
209
- workingDirectory: '$(Build.SourcesDirectory)/js/react_native/ios'
210
- displayName: Pod install for onnxruntime react native ios bridge library
211
-
212
- # Run E2E tests with Detox on iOS simulator
213
- - script :
214
- brew tap wix/brew
215
- displayName : brew tap wix/brew
216
-
217
- - script :
218
- brew install applesimutils
219
- displayName : Install applesimutils tools required by detox ios
220
-
221
- - script : |
222
- ORT_C_LOCAL_POD_PATH=$(Build.BinariesDirectory)/ios_pod/onnxruntime-c \
223
- pod install
224
- workingDirectory: '$(Build.SourcesDirectory)/js/react_native/e2e/ios'
225
- displayName: Pod install for onnxruntime react native ios e2e tests
226
-
227
- - script : |
228
- detox build --configuration ios.sim.release
229
- workingDirectory: '$(Build.SourcesDirectory)/js/react_native/e2e'
230
- displayName: Build React Native Detox iOS e2e Tests
231
-
232
- - script : |
233
- JEST_JUNIT_OUTPUT_FILE=$(Build.SourcesDirectory)/js/react_native/e2e/ios-test-results.xml \
234
- detox test --record-logs all \
235
- --configuration ios.sim.release \
236
- --loglevel verbose \
237
- --take-screenshots failing
238
- workingDirectory: '$(Build.SourcesDirectory)/js/react_native/e2e'
239
- displayName: Run React Native Detox iOS e2e Tests
240
-
241
- - task : PublishTestResults@2
242
- inputs :
243
- testResultsFiles : ' $(Build.SourcesDirectory)/js/react_native/e2e/ios-test-results.xml'
244
- failTaskOnFailedTests : true
245
- testRunTitle : ' React Native Detox iOS e2e Test Results'
246
- condition : succeededOrFailed()
247
- displayName : Publish React Native Detox iOS e2e Test Results
248
-
249
- - task : ${{ variables.publishPipelineArtifactTask }}
250
- inputs :
251
- artifactName : ' ios_e2e_test_logs_$(Build.BuildId)_$(Build.BuildNumber)_$(System.JobAttempt)'
252
- targetPath : ' $(Build.SourcesDirectory)/js/react_native/e2e/artifacts'
253
- condition : succeededOrFailed()
254
- displayName : Publish React Native Detox E2E test logs
255
-
256
- - template : explicitly-defined-final-tasks.yml
0 commit comments