-
Notifications
You must be signed in to change notification settings - Fork 27
/
Rakefile
41 lines (35 loc) · 828 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
29
30
31
32
33
34
35
36
37
38
39
40
41
require 'bundler/gem_tasks'
require 'rake/testtask'
require 'cucumber'
require 'cucumber/rake/task'
require 'inch/rake'
require 'yard'
require 'rubocop/rake_task'
Cucumber::Rake::Task.new(:cucumber) do |t|
t.cucumber_opts = 'features --format progress'
end
Rake::TestTask.new(:test) do |t|
t.libs.push 'lib'
t.libs.push 'test'
t.pattern = 'test/**/*_test.rb'
t.verbose = false
end
YARD::Rake::YardocTask.new(:yard) do |t|
t.files = [
'lib/**/*.rb',
'-',
'docs/api.md',
'docs/getting_started.md',
'docs/views.md'
]
end
Inch::Rake::Suggest.new(:inch) do |suggest|
suggest.args << '--pedantic'
suggest.args << '--all'
end
RuboCop::RakeTask.new(:rubocop) do |task|
task.patterns = ['lib/**/*.rb']
task.formatters = ['progress']
task.fail_on_error = false
end
task :default => :test