-
Notifications
You must be signed in to change notification settings - Fork 5.5k
/
Rakefile
27 lines (22 loc) · 591 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# frozen_string_literal: true
require "rake/testtask"
require "rspec/core/rake_task"
require "rubocop"
require "rubocop/rake_task"
require "rubocop-rake"
task default: [:spec]
Rake::TestTask.new do |t|
t.pattern = "*/**/tests/test_*.rb"
t.verbose = true
t.warning = false
end
desc "Run specs."
RSpec::Core::RakeTask.new do |t|
t.pattern = "*/**/*_spec.rb"
t.rspec_opts = ["--tag", "integ", "--tag", "~@quarantine"]
end
desc "Run rubocop"
RuboCop::RakeTask.new(:rubocop) do |t|
t.options = ["--config", "../.github/linters/.ruby-lint.yml"]
t.requires << "rubocop-rake"
end