mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 22:35:03 +08:00
DEV: Make setting up of multisite DB in test env clearer.
This commit is contained in:
@ -100,6 +100,9 @@ task 'docker:test' do
|
||||
@pg_pid = Process.spawn("#{@postgres_bin}postmaster -D tmp/test_data/pg")
|
||||
|
||||
ENV["RAILS_ENV"] = "test"
|
||||
# this shaves all the creation of the multisite db off
|
||||
# for js tests
|
||||
ENV["SKIP_MULTISITE"] = "1" if ENV["JS_ONLY"]
|
||||
|
||||
@good &&= run_or_fail("bundle exec rake db:create")
|
||||
|
||||
@ -107,10 +110,6 @@ task 'docker:test' do
|
||||
@good &&= run_or_fail("bundle exec rake plugin:install_all_official")
|
||||
end
|
||||
|
||||
# this shaves all the creation of the multisite db off
|
||||
# for js tests
|
||||
ENV["SKIP_MULTISITE"] = "1" if ENV["JS_ONLY"]
|
||||
|
||||
if ENV["SKIP_PLUGINS"]
|
||||
@good &&= run_or_fail("bundle exec rake db:migrate")
|
||||
else
|
||||
|
Reference in New Issue
Block a user