forked from newcontext-oss/kitchen-terraform
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGuardfile
More file actions
44 lines (28 loc) · 1016 Bytes
/
Guardfile
File metadata and controls
44 lines (28 loc) · 1016 Bytes
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
42
43
44
# frozen_string_literal: true
require 'guard/rspec/dsl'
directories ['lib', 'spec']
group :red_green_refactor, halt_on_fail: true do
::Guard::RSpec::Dsl.new(self).tap do |dsl|
guard :rspec, all_after_pass: true, all_on_start: true,
bundler_env: :inherit, cmd: 'bundle exec rspec' do
watch dsl.rspec.spec_files
watch(dsl.rspec.spec_helper) { dsl.rspec.spec_dir }
watch(dsl.rspec.spec_support) { dsl.rspec.spec_dir }
dsl.watch_spec_files_for dsl.ruby.lib_files
end
guard :rubocop, all_on_start: true do
watch dsl.rspec.spec_files
watch dsl.rspec.spec_helper
watch dsl.rspec.spec_support
watch dsl.ruby.lib_files
end
guard 'rubycritic' do
watch dsl.rspec.spec_files
watch dsl.rspec.spec_helper
watch dsl.rspec.spec_support
watch dsl.ruby.lib_files
end
end
guard(:bundler) { watch 'kitchen-terraform.gemspec' }
guard(:bundler_audit, run_on_start: true) { watch 'Gemfile.lock' }
end