mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:41:17 +08:00
Add options to skip core and install official plugins
This commit is contained in:
@ -30,8 +30,16 @@ task 'docker:test' do
|
|||||||
ENV["RAILS_ENV"] = "test"
|
ENV["RAILS_ENV"] = "test"
|
||||||
|
|
||||||
@good = run_or_fail("bundle exec rake db:create db:migrate")
|
@good = run_or_fail("bundle exec rake db:create db:migrate")
|
||||||
|
|
||||||
|
if ENV["INSTALL_OFFICIAL_PLUGINS"]
|
||||||
|
@good &&= run_or_fail("bundle exec rake plugin:install_all_official")
|
||||||
|
end
|
||||||
|
|
||||||
unless ENV["JS_ONLY"]
|
unless ENV["JS_ONLY"]
|
||||||
@good &&= run_or_fail("bundle exec rspec")
|
|
||||||
|
unless ENV["SKIP_CORE"]
|
||||||
|
@good &&= run_or_fail("bundle exec rspec")
|
||||||
|
end
|
||||||
|
|
||||||
if ENV["LOAD_PLUGINS"]
|
if ENV["LOAD_PLUGINS"]
|
||||||
@good &&= run_or_fail("bundle exec rake plugin:spec")
|
@good &&= run_or_fail("bundle exec rake plugin:spec")
|
||||||
|
Reference in New Issue
Block a user