Last active
December 29, 2015 00:59
-
-
Save ruzz311/7589833 to your computer and use it in GitHub Desktop.
A simple bashscript to bulk upload testflight builds
This file contains hidden or 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
#!/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