mirror of
https://github.com/discourse/discourse.git
synced 2026-08-09 04:28:29 -05:00
DEV: Lint official plugins in CI (#6519)
This commit is contained in:
@@ -38,6 +38,11 @@ desc 'Run all tests (JS and code in a standalone environment)'
|
||||
task 'docker:test' do
|
||||
begin
|
||||
@good = true
|
||||
|
||||
if ENV["INSTALL_OFFICIAL_PLUGINS"]
|
||||
@good &&= run_or_fail("bundle exec rake plugin:install_all_official")
|
||||
end
|
||||
|
||||
unless ENV['SKIP_LINT']
|
||||
puts "travis_fold:start:lint" if ENV["TRAVIS"]
|
||||
puts "Running linters/prettyfiers"
|
||||
@@ -91,10 +96,6 @@ task 'docker:test' do
|
||||
|
||||
@good &&= run_or_fail("bundle exec rake db:create")
|
||||
|
||||
if ENV["INSTALL_OFFICIAL_PLUGINS"]
|
||||
@good &&= run_or_fail("bundle exec rake plugin:install_all_official")
|
||||
end
|
||||
|
||||
if ENV["SKIP_PLUGINS"]
|
||||
@good &&= run_or_fail("bundle exec rake db:migrate")
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user