/ Published in: Ruby
URL: https://github.com/mynyml/watchr
A simple Watchr config for running PHPUnit tests.
This will run a Pake task called "test" and ring the system bell if the task fails. Ringing the system bell is especially nice when running inside a GNU Screen session.
Installation
To install you need RubyGems. Then type:
sudo gem install watchr
Expand |
Embed | Plain Text
# Run me with: # $ watchr -d scruffy.watchr # -------------------------------------------------- # Rules # -------------------------------------------------- watch( '(.*(\.php|pakefile)$)' ) { |m| system %{pake test} or puts "\a" } # -------------------------------------------------- # Signal Handling # -------------------------------------------------- Signal.trap('INT' ) { abort("\n") } # Ctrl-C
You need to login to post a comment.
