diff --git a/lib/tasks/docker.rake b/lib/tasks/docker.rake index e9c35259921..ba8537c07bb 100644 --- a/lib/tasks/docker.rake +++ b/lib/tasks/docker.rake @@ -70,11 +70,13 @@ task 'docker:test' do ENV["RAILS_ENV"] = "test" + @good &&= run_or_fail("bundle exec rake db:create") + if ENV["INSTALL_OFFICIAL_PLUGINS"] @good &&= run_or_fail("bundle exec rake plugin:install_all_official") end - @good &&= run_or_fail("bundle exec rake db:create db:migrate") + @good &&= run_or_fail("bundle exec rake db:migrate") unless ENV["JS_ONLY"]