Update docker_patched.rake

This commit is contained in:
David Taylor 2017-07-12 12:27:07 +01:00
parent 688f28262e
commit a724463f7c
1 changed files with 9 additions and 9 deletions

View File

@ -30,18 +30,18 @@ task 'docker:test' do
ENV["RAILS_ENV"] = "test"
@good = run_or_fail("bundle exec rake db:create db:migrate")
unless ENV["JS_ONLY"] or ENV["SINGLE_PLUGIN"]
@good &&= run_or_fail("bundle exec rspec")
if ENV["LOAD_PLUGINS"]
@good &&= run_or_fail("bundle exec rake plugin:spec")
unless ENV["JS_ONLY"]
if ENV["SINGLE_PLUGIN"]
@good &&= run_or_fail("bundle exec rake plugin:spec['#{ENV["SINGLE_PLUGIN"]}']")
else
@good &&= run_or_fail("bundle exec rspec")
if ENV["LOAD_PLUGINS"]
@good &&= run_or_fail("bundle exec rake plugin:spec")
end
end
end
if ENV["SINGLE_PLUGIN"]
@good &&= run_or_fail("bundle exec rake plugin:spec['#{ENV["SINGLE_PLUGIN"]}']")
end
unless ENV["RUBY_ONLY"]
unless["SINGLE_PLUGIN"]
@good &&= run_or_fail("eslint app/assets/javascripts")