Skip to content

Instantly share code, notes, and snippets.

@walf443
Created January 8, 2013 03:57
Show Gist options
  • Save walf443/4481036 to your computer and use it in GitHub Desktop.
Save walf443/4481036 to your computer and use it in GitHub Desktop.
変更があったphpファイルのsyntaxをチェック
# guard start -i
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
guard :shell, :all_on_start => false do
watch %r{((app|tests|lib/(src|tests))/.*\.php$)} do |m|
puts "######################## start syntax check #{m[0]} ##############################"
system("php /home/yoshimin/project/PHP-Parser/syntax_check.php #{m[0]}")
end
end
@walf443
Copy link
Author

walf443 commented Jan 8, 2013

ファイル名はGuardfileで。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment