This sample recipe builds using a monotone repository. {{{ }}} '''Comments:''' * Note that the above recipe uses the ${repository.branch} variable to specify the monotone branch. Either specify in the slave configuration (see example at [wiki:SlaveConfiguration]), or replace the variable name with a literal branch name in the recipe. * Checkout: This creates a temporary directory, deleting it first to guarantee it's empty. Then, creates a local monotone repository database if it doesn't already exist. Then, synchronises with the remote repository, and finally checks out the appropriate revision. * Compile: Just calls make. * Test: Just calls make test. * Cleanup: Trashes the temporary directory. * Note that the local copy of the monotone repository is left lying around in /tmp/db.mtn. It obviously saves some network bandwidth if the repository isn't re-copied to the slave for each build, so this is worth doing. You might want to put it somewhere else other than /tmp.