Only run plugin tests if plugins are loaded.

This commit is contained in:
Guo Xiang Tan 2017-03-07 16:36:49 +08:00
parent 60b7453f3f
commit 5d9daa299a
1 changed files with 4 additions and 1 deletions

View File

@ -32,7 +32,10 @@ task 'docker:test' do
@good = run_or_fail("bundle exec rake db:create db:migrate")
unless ENV["JS_ONLY"]
@good &&= run_or_fail("bundle exec rspec")
@good &&= run_or_fail("bundle exec rake plugin:spec")
if ENV["LOAD_PLUGINS"]
@good &&= run_or_fail("bundle exec rake plugin:spec")
end
end
unless ENV["RUBY_ONLY"]
@good &&= run_or_fail("eslint app/assets/javascripts")