Skip to content

Commit

Permalink
use halt_on_fail in Guardfile
Browse files Browse the repository at this point in the history
  • Loading branch information
e2 committed Dec 9, 2014
1 parent c57f307 commit f66c465
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions Guardfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
guard :rspec do
watch(%r{spec/.+_spec.rb})
watch(%r{lib/(.+)\.rb}) { |m| "spec/lib/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" }
group :specs, halt_on_fail: true do
guard :rspec, cmd: "bundle exec rspec", failed_mode: :keep do
watch(%r{spec/.+_spec.rb})
watch(%r{lib/(.+)\.rb}) { |m| "spec/lib/#{m[1]}_spec.rb" }
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]) }
watch(%r{(?:.+/)?\.rubocop_todo\.yml$}) { |m| File.dirname(m[0]) }
end
end

0 comments on commit f66c465

Please sign in to comment.