Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Bash script to upload iOS app to Xamarin Test Cloud. Use together with xamarin-build.sh
function section_print {
echo "\n=== $* ==="
}
# Parameter passed from the upstream job that built the iOS app
cd "$UPSTREAM_WORKSPACE"
for file in "*.ipa"
do
IPA_FILE=`echo $file`
done
for file in "*.dSYM"
do
DSYM_FILE=`echo $file`
done
# Path to the Xamarin.UITest NuGet package
UPLOADER_PATH=packages/Xamarin.UITest.0.6.8/tools/test-cloud.exe
# Location of the test project dlls
TEST_DIRECTORY=MyProject.UITests/bin/"$CONFIGURATION"
API_KEY='your-api-key'
APP_NAME='your-app-name'
TEST_SERIES='master'
LOCALE='en_US'
DEVICE_SET='4cd087d5' #iPhone 8.1 devices
section_print "Uploading to XTC on device set: $DEVICE_SET"
mono $UPLOADER_PATH submit $IPA_FILE $API_KEY --devices $DEVICE_SET --series $TEST_SERIES --locale $LOCALE --app-name $APP_NAME --assembly-dir $TEST_DIRECTORY --dsym $DSYM_FILE --nunit-xml "$WORKSPACE/report.xml"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.