From 2afddeed036b1970d2d74f028e354bcd35369760 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Wed, 15 May 2013 01:09:59 -0600 Subject: add Guardfile and deps for continuous testing - leave dependency group commented by default - add instructions for disabling notifications --- Guardfile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'Guardfile') diff --git a/Guardfile b/Guardfile index 35f12b78..be32090e 100644 --- a/Guardfile +++ b/Guardfile @@ -1,6 +1,5 @@ -# A sample Guardfile -# More info at https://github.com/guard/guard#readme - +# use `guard start -n f` to disable notifications +# or set the environment variable GUARD_NOTIFY=false notification :libnotify, :display_message => true, :timeout => 5, # in seconds @@ -9,7 +8,11 @@ notification :libnotify, :urgency => :critical guard :test do - watch(%r{^lib/(.+)\.rb$}) { |m| "test/#{m[1]}_test.rb" } + watch(%r{^lib/(.+)\.rb$}) do |m| + "test/#{m[1]}_test.rb" + end watch(%r{^test.+_test\.rb$}) - watch('test/test_helper.rb') { "test" } + watch('test/test_helper.rb') do + "test" + end end -- cgit v1.2.3