DEV: Lint official plugins in CI (#6519)

This commit is contained in:
David Taylor 2018-10-22 21:28:38 +01:00 committed by GitHub
parent 2cc195f3d9
commit 093cab2db0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -76,6 +76,7 @@ script:
if [ '$RUN_LINT' == '1' ]; then
bundle exec rubocop --parallel && \
bundle exec danger && \
yarn prettier --list-different "plugins/**/*.scss" "plugins/**/*.es6" \
yarn eslint --ext .es6 app/assets/javascripts && \
yarn eslint --ext .es6 test/javascripts && \
yarn eslint --ext .es6 plugins/**/assets/javascripts && \

View File

@ -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