-
Notifications
You must be signed in to change notification settings - Fork 224
/
Rakefile
28 lines (21 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
28
# frozen_string_literal: true
require 'bundler/gem_tasks'
require 'rake/testtask'
require 'rubocop/rake_task'
require 'cucumber/rake/task'
require 'reek/rake/task'
require 'rubycritic/rake_task'
Rake::TestTask.new do |task|
task.libs.push 'lib'
task.libs.push 'test'
task.pattern = 'test/**/*_test.rb'
end
Cucumber::Rake::Task.new(:features) do |t|
t.cucumber_opts = %w[features --format progress --color]
end
RuboCop::RakeTask.new
Reek::Rake::Task.new
RubyCritic::RakeTask.new do |task|
task.paths = FileList['lib/**/*.rb']
end
task default: %i[test features reek rubocop]