Skip to content

Instantly share code, notes, and snippets.

@ruzz311
Last active December 29, 2015 00:59
Show Gist options
  • Save ruzz311/7589833 to your computer and use it in GitHub Desktop.
Save ruzz311/7589833 to your computer and use it in GitHub Desktop.
A simple bashscript to bulk upload testflight builds
#!/bin/bash
# TESTFLIGHT_UPTOKEN and TESTFLIGHT_TEAMTOEKN are environment variables
# you can replace them directly with your tokens, but a environment is cooler.
NOTES="you can have multi-line notes here
that will upload with all ipa files"
makeCall(){
curl http://testflightapp.com/api/builds.json \
-F file="@$1" \
-F api_token="$TESTFLIGHT_UPTOKEN" \
-F team_token="$TESTFLIGHT_TEAMTOKEN" \
-F notes="$NOTES" \
-F notify=True \
-F distribution_lists='Developers, QA' \
-F replace=False
}
# Load all the filenames - these are in the same directory as the script.
for BUILDNAME in AppName-dev.ipa AppName-test.ipa AppName-prod.ipa
do
makeCall $BUILDNAME
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment