-
Notifications
You must be signed in to change notification settings - Fork 38
/
ios.sh
23 lines (17 loc) · 1.06 KB
/
ios.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env bash
# Setup & usage
# Step 0 Build the UITest project & generate an IPA using the "Debug" configuration (or use the provided IPA)
# Step 1 Generate an AppCenter upload command and paste it to the variable
AppCenter_Test_Command='paste upload command here'
# Debugging upload command
# AppCenter_Test_Command='appcenter test run uitest --app "XTCTeam/Kent-G.-UITestDemo-1" --devices "XTCTeam/12-dot-4-6-13-dot-7" --app-path pathToFile.ipa --test-series "main" --locale "en_US" --build-dir pathToUITestBuildDir'
# Step 2 Provide the (absolute or relative) path to the IPA
app_path='precompiledApps/UITestDemo.ipa'
# Step 3 Provide the (absolute or relative) path to the UITest project bin folder
build_dir='UITestDemo.UITest/bin/Debug'
# Step 4 run using the command "sh ios.sh"
# Script injects app_path & build_dir and executes resulting command
AppCenter_Test_Command=${AppCenter_Test_Command/'pathToFile.ipa'/$app_path}
AppCenter_Test_Command=${AppCenter_Test_Command/'pathToUITestBuildDir'/$build_dir}
echo $AppCenter_Test_Command
eval $AppCenter_Test_Command