Created
January 8, 2013 03:57
-
-
Save walf443/4481036 to your computer and use it in GitHub Desktop.
変更があったphpファイルのsyntaxをチェック
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ファイル名はGuardfileで。