Skip to content

Commit

Permalink
Make Rake run tests by default
Browse files Browse the repository at this point in the history
And add linting as a Rake task
  • Loading branch information
paracycle committed Jan 27, 2022
1 parent 988493f commit 0917374
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,16 @@
require "bundler/gem_tasks"
Dir["tasks/**/*.rake"].each { |t| load t }

task(default: :build)
require "rubocop/rake_task"
RuboCop::RakeTask.new

desc "Run tests"
task :test do
require "shellwords"
test = Array(ENV.fetch("TEST", []))
test_opts = Shellwords.split(ENV.fetch("TESTOPTS", ""))
success = system("bin/test", *test, *test_opts)
success || exit(false)
end

task(default: :test)
62 changes: 62 additions & 0 deletions sorbet/rbi/gems/rubocop@1.17.0.rbi

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions sorbet/tapioca/require.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
require "money"
require "rubocop"
require "rake/testtask"
require "rubocop/rake_task"
require "sidekiq"
require "config"
require "aasm"

0 comments on commit 0917374

Please sign in to comment.