This commit is contained in:
Kent Green 2020-09-25 17:05:58 -07:00
Родитель 15b25b45e2
Коммит 6136ca9fe8
1 изменённых файлов: 20 добавлений и 0 удалений

20
ios.sh Normal file
Просмотреть файл

@ -0,0 +1,20 @@
#!/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'
# Step 2 Provide the (absolute or relative) path to the IPA
app_path='FormsGallery/FormsGallery.iOS/bin/Debug/formsgallery.ipa'
# Step 3 Provide the (absolute or relative) path to the UITest project bin folder
build_dir='FormsGallery.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