fix guard file

This commit is contained in:
Yuan Chiu 2015-06-21 10:51:07 +08:00
parent a85548550d
commit 5cbb643571
2 changed files with 6 additions and 6 deletions

View File

@ -4,8 +4,8 @@ group :development do
gem 'guard-livereload', require: false gem 'guard-livereload', require: false
gem 'guard-shell' gem 'guard-shell'
gem 'guard-phpunit2' gem 'guard-phpunit2'
gem 'rb-fsevent' gem 'rb-fsevent'
gem 'ruby_gntp' gem 'ruby_gntp'
gem 'growl' gem 'growl'
gem 'libnotify' gem 'libnotify'
end end

View File

@ -6,9 +6,9 @@
# #
# Mac用的通知中心 # Mac用的通知中心
notification :growl #notification :growl
# Linux用的通知中心 # Linux用的通知中心
notification :libnotify #notification :libnotify
scope groups: [:build, :livereload, :test] scope groups: [:build, :livereload, :test]
group :build do group :build do
@ -32,8 +32,8 @@ group :test do
guard :phpunit2, :all_on_start => false, :tests_path => 'tests/', :cli => '--colors -c phpunit.xml' do guard :phpunit2, :all_on_start => false, :tests_path => 'tests/', :cli => '--colors -c phpunit.xml' do
# Run any test in app/tests upon save. # Run any test in app/tests upon save.
watch(%r{^tests/.+Test\.php$}) watch(%r{^tests/.+Test\.php$})
# When a file is edited, try to run its associated test. # When a file is edited, try to run its associated test.
watch(%r{^htdocs/lib/(.+)\.php}) { |m| "tests/#{m[1]}Test.php" } watch(%r{^htdocs/lib/(.+)\.php}) { |m| "tests/#{m[1]}Test.php" }
end end
end end