2 # Add your own tasks in files placed in lib/tasks ending in .rake,
3 # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
5 require File.expand_path('../config/application', __FILE__)
10 abort "Hm, pg_power is missing. Make sure you use 'bundle exec rake ...'"
13 Server::Application.load_tasks
17 # Copied from the definition in Rails 3.2.
18 # This may need to be updated if we upgrade Rails.
20 errors = %w(test:units test:functionals test:integration test:tasks).collect do |task|
22 Rake::Task[task].invoke
25 { :task => task, :exception => e }
30 puts errors.map { |e| "Errors running #{e[:task]}! #{e[:exception].inspect}" }.join("\n")