Skip to content

Instantly share code, notes, and snippets.

@hramos
Created January 11, 2011 03:51
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hramos/773985 to your computer and use it in GitHub Desktop.
Save hramos/773985 to your computer and use it in GitHub Desktop.
Deploy builds to Testflight with this script. Use a git wrapper (i.e. git push-and-deploy) to invoke git push, then xcodebuild, then this script.
#!/bin/sh
FILE=@FILENAME.ipa
API_TOKEN='<api key under account>'
TEAM_TOKEN='<team token under specific team>'
NOTES='Buildscript'
ENDPOINT=http://testflightapp.com/api/builds.json
DISTRIBUTION_LISTS='Internal'
curl $ENDPOINT -F file=$FILE -F api_token=$API_TOKEN -F team_token=$TEAM_TOKEN -F notify=true -F distribution_lists=$DISTRIBUTION_LISTS -F notes=$NOTES
@hramos
Copy link
Author

hramos commented Jan 11, 2011

Added notify=true to enable email notifications (had disabled them while debugging).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment