Check Commits The Easy WayIn Chad Fowlers [Rails Recipes] I encountered the tip to use the continuous_builder plugin to automatically test your code after each commit. This to check, for example that all necessary files are committed. The continuous_builder plugin however has two problems:
This can be done much easier on the client-side, and simpler; in the spirit of less is more: Add this to task_helpers.rb class CommitCheckNotifier < ActionMailer::Base
Add this as do_check_commit.rake to lib/tasks task :do_check_commit do
(replace logilogi with your own project-name) Calling rake do_check_commit will now checkout your code and test it, and if something goes wrong it will send an e-mail to the local user (the one that broke it). You might want to add your projects developers mailinglist to the recipients too. Then create a do_commit.rake task in this same dir that calls rake do_check_commit, and it can also take care of other things like visualizing your class- structure or generating documentation to match the change (and not to forget it should also call svn commit, ...before the do_check_commit of course...). |
MenuList
