Tidy up the build output for Active Job adapters

This commit is contained in:
Matthew Draper 2019-10-23 20:47:50 +10:30
parent 1811e84116
commit 7437b6a361
2 changed files with 8 additions and 3 deletions

View File

@ -68,10 +68,17 @@ def run_without_aborting(tasks)
errors = []
tasks.each do |task|
puts "\n\n--- rake #{task}\n"
Rake::Task[task].invoke
rescue Exception
puts "\n^^^ +++"
errors << task
end
abort "Errors running #{errors.join(', ')}" if errors.any?
if errors.any?
puts "\n\n+++ Summary\n"
abort "Errors running #{errors.join(', ')}"
end
end

View File

@ -1,7 +1,5 @@
# frozen_string_literal: true
puts "\n\n*** rake test:integration:#{ENV['AJ_ADAPTER']} ***\n"
ENV["RAILS_ENV"] = "test"
ActiveJob::Base.queue_name_prefix = nil