mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
### Description <!-- Describe your changes. --> Integrate react native e2e test framework with detox. https://wix.github.io/Detox/ Good build in CI: https://dev.azure.com/onnxruntime/onnxruntime/_build/results?buildId=946695&view=results ### Motivation and Context <!-- - Why is this change required? What problem does it solve? - If it fixes an open issue, please link to the issue here. --> Write cross-platform end-to-end tests in JavaScript. Resolve flaky e2e tests in react native ci pipelines. --------- Co-authored-by: rachguo <rachguo@rachguos-Mini.attlocal.net> Co-authored-by: rachguo <rachguo@rachguos-Mac-mini.local>
40 lines
1 KiB
Ruby
40 lines
1 KiB
Ruby
require_relative '../node_modules/react-native/scripts/react_native_pods'
|
|
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
|
|
|
|
platform :ios, '12.4'
|
|
|
|
def shared
|
|
config = use_native_modules!
|
|
|
|
use_react_native!(:path => config["reactNativePath"])
|
|
|
|
# Comment the next line if you don't want to use dynamic frameworks
|
|
use_frameworks!
|
|
|
|
# Mobile build
|
|
# ort_mobile_c_local_pod_path = ENV['ORT_MOBILE_C_LOCAL_POD_PATH']
|
|
# if ort_mobile_c_local_pod_path != nil
|
|
# print 'Using onnxruntime-c pod at ', ort_mobile_c_local_pod_path, "\n"
|
|
# pod 'onnxruntime-mobile-c', :path => ort_mobile_c_local_pod_path
|
|
# else
|
|
# pod 'onnxruntime-mobile-c'
|
|
# end
|
|
|
|
ort_c_local_pod_path = ENV['ORT_C_LOCAL_POD_PATH']
|
|
if ort_c_local_pod_path != nil
|
|
print 'Using onnxruntime-c pod at ', ort_c_local_pod_path, "\n"
|
|
pod 'onnxruntime-c', :path => ort_c_local_pod_path
|
|
else
|
|
pod 'onnxruntime-c'
|
|
end
|
|
|
|
inherit! :search_paths
|
|
end
|
|
|
|
target 'OnnxruntimeModule' do
|
|
shared
|
|
end
|
|
|
|
target 'OnnxruntimeModuleTest' do
|
|
shared
|
|
end
|