Skip to content

Commit

Permalink
chore: run rubocop with rake test
Browse files Browse the repository at this point in the history
  • Loading branch information
doudou committed Sep 2, 2024
1 parent a0a9544 commit 2b95b4a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,19 @@
require "bundler/gem_tasks"
require "rake/testtask"

Rake::TestTask.new(:test) do |t|
Rake::TestTask.new("test:lib") do |t|
t.libs << "test"
t.libs << "lib"
t.test_files = FileList["test/**/*_test.rb"]
end

task "rubocop" do
raise "rubocop failed" unless system(ENV["RUBOCOP_CMD"] || "rubocop")
end
desc "Run tests"
task "test" => "test:lib"
task "test" => "rubocop"

require "rake/extensiontask"

task build: :compile
Expand Down

0 comments on commit 2b95b4a

Please sign in to comment.