-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[Mobile] Add E2E BrowserStack tests for iOS tests #22610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
fdb45e0
add iOS browserstack tests to pipeline + adapt browserstack script ar…
carzh a3f8822
removed debug step + update android pipeline args
carzh 25aa44b
.\tools\python\generate_plist.py
carzh 036f6f8
moved the generate plist script, switched to args instead of env vars…
carzh b409e69
lintrunner + added more docs
carzh fb296aa
updated docs
carzh 5ff057f
lintrunner again T-T
carzh 1792e9d
required full path for xcworkspace path
carzh 4298438
added absolute paths back in + try with removing developerdir
carzh 9a77d76
removed xcodeversion option
carzh 9275278
updated docs
carzh 68e596e
Update tools/python/upload_and_run_browserstack_tests.py
carzh cfc2272
removed install app center stage, deleted install app center yaml, an…
carzh 5f40cec
Update tools/ci_build/github/azure-pipelines/templates/stages/mac-ios…
carzh 16af02e
Merge remote-tracking branch 'msft/main' into carzh/browserstack-ios-…
carzh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
54 changes: 54 additions & 0 deletions
54
onnxruntime/test/platform/apple/generate_ipa_export_options_plist.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import argparse | ||
|
||
plist_file_content = """ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>method</key> | ||
<string>development</string> | ||
<key>teamID</key> | ||
<string>{team_id}</string> | ||
<key>provisioningProfiles</key> | ||
<dict> | ||
<key>ai.onnxruntime.tests.ios-package-test</key> | ||
<string>{provisioning_profile_uuid}</string> | ||
</dict> | ||
<key>signingStyle</key> | ||
<string>manual</string> | ||
</dict> | ||
</plist> | ||
""" | ||
if __name__ == "__main__": | ||
# handle cli args | ||
parser = argparse.ArgumentParser( | ||
"Generates a PList file to the relevant destination. This PList file contains the properties to allow a user to generate an IPA file for the ios-package-test. " | ||
) | ||
|
||
parser.add_argument("--dest_file", type=str, help="Path to output the PList file to.", required=True) | ||
parser.add_argument( | ||
"--apple_team_id", | ||
type=str, | ||
help="The Team ID associated with the provisioning profile. You should be able to find this from the Apple developer portal under Membership.", | ||
required=True, | ||
) | ||
parser.add_argument( | ||
"--provisioning_profile_uuid", | ||
type=str, | ||
help="The Provisioning Profile UUID, which can be found in the .mobileprovision file. ", | ||
required=True, | ||
) | ||
|
||
args = parser.parse_args() | ||
|
||
formatted_plist = plist_file_content.format( | ||
team_id=args.apple_team_id, provisioning_profile_uuid=args.provisioning_profile_uuid | ||
) | ||
|
||
with open(args.dest_file, "w") as file: | ||
file.write(formatted_plist) | ||
|
||
print("Wrote plist file to ", args.dest_file) | ||
print() | ||
print("Contents of file:") | ||
print(formatted_plist) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 0 additions & 12 deletions
12
tools/ci_build/github/azure-pipelines/templates/install-appcenter.yml
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
carzh marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.