diff options
| author | Dan Allen <dallen@redhat.com> | 2013-05-15 01:09:59 -0600 |
|---|---|---|
| committer | Dan Allen <dallen@redhat.com> | 2013-05-15 01:11:26 -0600 |
| commit | 2afddeed036b1970d2d74f028e354bcd35369760 (patch) | |
| tree | 501c6632e150292716fbe3cdefa2bfd19ab7a5e8 | |
| parent | 5742de13d3aa77955224a6eb8329b0cd58b675cf (diff) | |
add Guardfile and deps for continuous testing
- leave dependency group commented by default
- add instructions for disabling notifications
| -rw-r--r-- | Gemfile | 16 | ||||
| -rw-r--r-- | Guardfile | 13 |
2 files changed, 17 insertions, 12 deletions
@@ -1,10 +1,12 @@ source 'https://rubygems.org' -group :development do - gem 'guard' - gem 'guard-test' - gem 'libnotify' - gem 'listen', :github => 'guard/listen' -end - gemspec + +# enable this group to use Guard for continuous testing +# after removing comments, run `bundle install` then `guard` +#group :guardtest do +# gem 'guard' +# gem 'guard-test' +# gem 'libnotify' +# gem 'listen', :github => 'guard/listen' +#end @@ -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 |
