samedi 27 juin 2015

Why are this Rake task's depenencies being run out of order?

When running the following Rake task, :test is run after :staging.

namespace :deploy do    
  desc 'Deploy to staging'
  task :staging => [:test, :cucumber] do
    # do deployment things ...
  end    
end

Is this the expected behavior (I'm fairly certain it's not...) or is Rails doing something "clever" in its implementation of :test?

Env:

  • Ruby 2.2.2
  • Rails 4.1.12
  • Rake 10.4.2

Aucun commentaire:

Enregistrer un commentaire