From 5d9daa299a09167b89071af26614eab6b1d7572a Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Tue, 7 Mar 2017 16:36:49 +0800 Subject: [PATCH] Only run plugin tests if plugins are loaded. --- lib/tasks/docker.rake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/tasks/docker.rake b/lib/tasks/docker.rake index 03234793ef4..aba9e4df45c 100644 --- a/lib/tasks/docker.rake +++ b/lib/tasks/docker.rake @@ -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")