forked from King-of-Spades/AppCenter-Samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
android.sh
18 lines (14 loc) · 831 Bytes
/
android.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Setup & usage
# Step 0 Build the UITest project & generate an APK using the "Release" configuration (or use the provided APK)
# Step 1 Generate an AppCenter upload command and paste it to the variable
AppCenter_Test_Command='paste upload command here'
# Step 2 Provide the (absolute or relative) path to the apk
app_path='precompiledApps/com.companyname.UITestDemo.apk'
# 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 android.sh"
# Script injects app_path & build_dir and executes resulting command
AppCenter_Test_Command=${AppCenter_Test_Command/'pathToFile.apk'/$app_path}
AppCenter_Test_Command=${AppCenter_Test_Command/'pathToUITestBuildDir'/$build_dir}
echo $AppCenter_Test_Command
eval $AppCenter_Test_Command