forked from guard/guard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Guardfile
26 lines (23 loc) · 792 Bytes
/
Guardfile
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
group :specs do
guard :rspec, cmd: 'bundle exec rspec', failed_mode: :keep do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^(lib/.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch('lib/guard/notifier.rb') { 'spec/guard/notifiers' }
watch('lib/guard/interactor.rb') { 'spec/guard/commands' }
watch(%r{^lib/guard/(guard|plugin).rb$}) { 'spec/guard/plugin' }
watch('spec/spec_helper.rb') { 'spec' }
end
guard :rubocop, all_on_start: false, cli: '--rails' do
watch(%r{.+\.rb$}) { |m| m[0] }
watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
end
end
if !defined?(JRUBY_VERSION)
if ENV['CI'] != 'true'
group :docs do
guard :ronn do
watch(%r{^man/.+\.ronn?$})
end
end
end
end