disables prettier enforcing for now

This commit is contained in:
Joffrey JAFFEUX 2018-06-08 15:44:00 +02:00 committed by GitHub
parent eedf7ffc4f
commit 22c186a792
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,6 @@ desc 'Run all tests (JS and code in a standalone environment)'
task 'docker:test' do
begin
system("yarn install --dev")
system("sudo npm install -g prettier")
@good = true
unless ENV['SKIP_LINT']
@ -47,22 +46,22 @@ task 'docker:test' do
@good &&= run_or_fail("bundle exec rubocop --parallel plugins/#{ENV["SINGLE_PLUGIN"]}")
@good &&= run_or_fail("eslint --ext .es6 plugins/#{ENV['SINGLE_PLUGIN']}")
puts "Listing prettier offenses in #{ENV['SINGLE_PLUGIN']}:"
@good &&= run_or_fail("prettier --list-different 'plugins/#{ENV['SINGLE_PLUGIN']}/**/*.scss'")
# puts "Listing prettier offenses in #{ENV['SINGLE_PLUGIN']}:"
# @good &&= run_or_fail("prettier --list-different 'plugins/#{ENV['SINGLE_PLUGIN']}/**/*.scss'")
else
@good &&= run_or_fail("bundle exec rubocop --parallel") unless ENV["SKIP_CORE"]
@good &&= run_or_fail("eslint app/assets/javascripts test/javascripts") unless ENV["SKIP_CORE"]
@good &&= run_or_fail("eslint --ext .es6 app/assets/javascripts test/javascripts plugins") unless ENV["SKIP_PLUGINS"]
unless ENV["SKIP_CORE"]
puts "Listing prettier offenses in core:"
@good &&= run_or_fail('prettier --list-different "app/assets/stylesheets/**/*.scss"')
end
# unless ENV["SKIP_CORE"]
# puts "Listing prettier offenses in core:"
# @good &&= run_or_fail('prettier --list-different "app/assets/stylesheets/**/*.scss"')
# end
unless ENV["SKIP_PLUGINS"]
puts "Listing prettier offenses in plugins:"
@good &&= run_or_fail('prettier --list-different "plugins/**/*.scss"')
end
# unless ENV["SKIP_PLUGINS"]
# puts "Listing prettier offenses in plugins:"
# @good &&= run_or_fail('prettier --list-different "plugins/**/*.scss"')
# end
end
end