forked from miketheman/knife-community
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
41 lines (35 loc) · 965 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
#!/usr/bin/env rake
require "bundler/gem_tasks"
task :default => [:features]
# https://github.com/turboladen/tailor
require 'tailor/rake_task'
Tailor::RakeTask.new do |task|
task.file_set('lib/**/*.rb', 'code') do |style|
style.max_line_length 160, level: :warn
end
end
require 'cucumber/rake/task'
Cucumber::Rake::Task.new(:features) do |t|
t.cucumber_opts = ['features', '-x']
t.cucumber_opts += ['--format pretty']
end
# https://github.com/guard/guard
require 'guard'
desc "Start up guard, does not exit until told to with 'q'."
task :guard do
Guard.setup
Guard::Dsl.evaluate_guardfile(:guardfile => 'Guardfile')
Guard.start
end
# File lib/tasks/notes.rake
desc "Find notes in code"
task :notes do
puts `grep --exclude=Rakefile -r 'OPTIMIZE:\\|FIXME:\\|TODO:' .`
end
# Clean up any artefacts
desc "Clean up dev environment cruft like tmp and packages"
task :clean do
%w{pkg tmp}.each do |subdir|
FileUtils.rm_rf(subdir)
end
end