testrunner - Run a command before allowing a commit

Version Not specified
Branch lp:bzr-testrunner
Home page https://launchpad.net/bzr-testrunner
Owner phinze
GNU/Linux Yes
Windows Yes
Mac OS X Yes

Run a command before allowing a commit.

This is a “Poor man’s PQM” (https://launchpad.net/pqm) that will run a command specified in branch.conf and only allow new changes in the branch if the return code of that command is 0. It is intended to run a test suite and verify that it passes before allowing commits and pushes, but it should have no problem running any arbitrary command.


To install the plugin, simply use Bazaar to branch this directory into your Bazaar plugins directory (usually ~/.bazaar/plugins):

$ cd ~/.bazaar/plugins
$ bzr branch lp:bzr-testrunner testrunner


Set ‘pre_change_branch_tip_test_command’ to the command you’d like to run in branch.conf. When you make a commit, the command specified here will be run in a temporary directory with the new code. If the command does not return 0, then the commit will not run.