Skip to content

Instantly share code, notes, and snippets.

View jpcody's full-sized avatar

Joshua Cody jpcody

View GitHub Profile
anonymous
anonymous / gist:410363
Created May 22, 2010 21:06
desc "Verify CakePHP TestSuite pass"
task :testsuite, :roles => :app do
run "#{release_path}/#{cakephp_core_path}/console/cake testsuite app all -app #{release_path}/#{cakephp_app_path}", :env => { :TERM => "linux" } do |channel, stream, data|
puts data
if stream == :err then
error = CommandError.new("CakePHP TestSuite failed")
raise error
end
end
end