Skip to content

Instantly share code, notes, and snippets.

Created May 22, 2010 21:06
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/410363 to your computer and use it in GitHub Desktop.
Save anonymous/410363 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment