DEV: allow skipping of a single plugin when installing

SKIP_INSTALL_PLUGINS can be used to tell plugin:install_all_official
to skip a plugin.

Comma seperated list
This commit is contained in:
Sam Saffron 2020-06-05 18:26:25 +10:00
parent ded5ebb5ae
commit 1c48853ede
No known key found for this signature in database
GPG Key ID: B9606168D2FFD9F5
2 changed files with 5 additions and 0 deletions

View File

@ -8,6 +8,7 @@
# => SKIP_TESTS set to 1 to skip all tests
# => SKIP_CORE set to 1 to skip core tests (rspec and qunit)
# => SKIP_PLUGINS set to 1 to skip plugin tests (rspec and qunit)
# => SKIP_INSTALL_PLUGINS comma seperated list of plugins you want to skip installing
# => INSTALL_OFFICIAL_PLUGINS set to 1 to install all core plugins before running tests
# => RUBY_ONLY set to 1 to skip all qunit tests
# => JS_ONLY set to 1 to skip all rspec tests

View File

@ -11,6 +11,10 @@ task 'plugin:install_all_official' do
'poll'
])
if skip_install = ENV["SKIP_INSTALL_PLUGINS"]
skip_install.split(",").map(&:strip).each { |plugin| skip << plugin }
end
map = {
'Canned Replies' => 'https://github.com/discourse/discourse-canned-replies',
'discourse-perspective' => 'https://github.com/discourse/discourse-perspective-api'