garethr / localbuilder

Python script for monitoring a given directory for changes and running a command when something changes

This URL has Read+Write access

2shortplanks (author)
Thu Jan 15 08:25:53 -0800 2009
garethr (committer)
Fri Jan 16 03:59:43 -0800 2009
commit  930856c38f220fc8e9f5de5ca954fdfd0604da70
tree    7e08adf0ffeb91f3678096e432f57bcb51b605e8
parent  48b4115b8c4799501cd460b76412b659b56e4e63
name age message
file .gitignore Loading commit data...
file README
file localbuilder.py
file test_localbuilder.py
README
Localbuilder is a simple solution to local Continuous Integration as well as being useful for a few other common tasks 
during development. It's written in Python but could be used on projects using any language.

./localbuilder --path /path/to/watch --command /command/to/execute

You can also specify the time between checks with the --period option. This defaults to 60 seconds.

Basic usage involves setting it to watch your working project folder. Whenever you make changes to any of the files, 
localbuilder will execute the specified command. Personally I use this mainly to execute a unit test suite whenever I 
make changes to a project.