Created
June 14, 2010 04:05
-
-
Save nerdyc/437260 to your computer and use it in GitHub Desktop.
This file contains 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
namespace :xcode do | |
namespace :build do | |
desc %{Builds the Release configuration} | |
task :release do | |
sh "xcodebuild -configuration Release" | |
end | |
desc %{Builds the Debug configuration} | |
task :debug do | |
sh "xcodebuild -configuration Debug" | |
end | |
task :default => :release | |
end | |
end | |
namespace :spec do | |
task :init => "xcode:build:debug" | |
desc %{Runs a single spec, passed as an argument} | |
task :file => :init do | |
sh "macruby /usr/bin/bacon #{ARGV[1]}" | |
end | |
desc %{Runs all specs in the Specs folder} | |
task :all => :init do | |
sh "macruby /usr/bin/bacon Specs/*_spec.rb" | |
end | |
end | |
desc %{Runs the entire spec suite} | |
task :spec => 'spec:all' | |
task :default => 'spec' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment