Created
February 3, 2012 19:17
-
-
Save burtlo/1731857 to your computer and use it in GitHub Desktop.
Test Flight Rake Task
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
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" |
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
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