Skip to content

Instantly share code, notes, and snippets.

@burtlo
Created February 3, 2012 19:17
Show Gist options
  • Save burtlo/1731857 to your computer and use it in GitHub Desktop.
Save burtlo/1731857 to your computer and use it in GitHub Desktop.
Test Flight Rake Task
source "http://rubygems.org"
gem "rake"
gem "highline"
#
# XCoder
#
gem "xcoder", :git => "git://github.com/burtlo/xcoder.git", :ref => "e4f2b627f33f39fabc3ec4aa4e05e3dbfc60450e"
gem "xcoder-cedar", :git => "git://github.com/burtlo/xcoder-cedar.git"
gem "xcoder-testflight", :git => "git://github.com/burtlo/xcoder-testflight.git"
require 'highline/import'
namespace :testflight do
xcode_project_schemes.each do |name,scheme_name|
namespace name do
desc "Push product canditate for #{name} to TestFlight"
task :push do |task, args|
message = ask("Enter a build description (enter 'DONE' to confirm):") do |q|
q.gather = "DONE"
end.join("\n")
application_builder = Xcode.project('wavii-ios').scheme(scheme_name).builder
application_builder.build
application_builder.package
application_builder.testflight :testflight_api_token => "TESTFLIGHT_USER_API_TOKEN",
:testflight_team_token => "TESTFLIGHT_TEAM_API_TOKEN",
:message => message,
:notify => true,
:distribution_list => 'Internal'
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment