Last active
August 29, 2015 14:15
-
-
Save jeffryvu/980d7b7f3509d7740382 to your computer and use it in GitHub Desktop.
Bash script to upload iOS app to Xamarin Test Cloud. Use together with xamarin-build.sh
This file contains 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
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