Skip to content

Instantly share code, notes, and snippets.

@nerdyc
Created June 14, 2010 04:05
Show Gist options
  • Save nerdyc/437260 to your computer and use it in GitHub Desktop.
Save nerdyc/437260 to your computer and use it in GitHub Desktop.
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