forked from flippercloud/flipper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Guardfile
35 lines (31 loc) · 1.08 KB
/
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
27
28
29
30
31
32
33
34
35
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
guard 'bundler' do
watch('Gemfile')
watch(/^.+\.gemspec/)
end
rspec_options = {
all_after_pass: false,
all_on_start: false,
failed_mode: :keep,
cmd: 'bundle exec rspec',
}
guard 'rspec', rspec_options do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch('lib/flipper/expression.rb') { 'spec/flipper_integration_spec.rb' }
watch('lib/flipper/ui/middleware.rb') { 'spec/flipper/ui_spec.rb' }
watch('lib/flipper/api/middleware.rb') { 'spec/flipper/api_spec.rb' }
watch(/shared_adapter_specs\.rb$/) { 'spec' }
watch('spec/helper.rb') { 'spec' }
watch('lib/flipper/adapters/http/client.rb') { 'spec/flipper/adapters/http_spec.rb' }
watch('lib/flipper/adapters/cache_base.rb') {
[
'spec/flipper/adapters/redis_cache_spec.rb',
'spec/flipper/adapters/dalli_cache_spec.rb',
'spec/flipper/adapters/active_support_cache_store_spec.rb',
]
}
# To run all specs on every change... (useful with focus and fit)
# watch(%r{.*}) { 'spec' }
end