Skip to content

Commit

Permalink
ci: separate rubocop and test tasks; make default task do both
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Nov 25, 2020
1 parent 3ad9607 commit 324640c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ Rake::TestTask.new do |t|
t.libs << "test"
t.test_files = Dir["test/**/*.rb"]
end
task :default => :test

desc "generate safelists from W3C specifications"
task :generate_safelists do
Expand All @@ -26,7 +25,8 @@ end
task :rubocop_frozen_string_literals do
sh "rubocop lib --auto-correct --only Style/FrozenStringLiteralComment"
end
Rake::Task[:test].prerequisites << :rubocop

task :default => [:rubocop, :test]

task :debug_manifest do
spec = eval(File.read("loofah.gemspec"))
Expand Down
2 changes: 1 addition & 1 deletion concourse/tasks/rake-test/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ pushd loofah
# TODO: remove this once fefc629 (2019-11-25) is far enough in the past
export RUBYOPT="--enable-frozen-string-literal --debug=frozen-string-literal"

bundle exec rake test
bundle exec rake

popd

0 comments on commit 324640c

Please sign in to comment.