On Sat, Sep 6, 2008 at 07:28, Harshad <harshad.rj_at_gmail.com> wrote:
> Hi,
>
> I have recently installed and maintain a medium-sized svn repository at my
> work-place. I wish to make sure that the trunk always compiles cleanly.
>
> Searching on the web for pre-commit hooks that do this didn't reveal
> anything.
>
> I guess such a pre-commit script would need to do this:
> * Check out the top of the trunk somewhere (or do an in-place update to
> save some time)
> * Patch this with the in-flight changes
> * Build the working-copy
> * Exit with non-zero value if build fails
>
> Is anybody aware of such a script?
You're looking for a continuous integration tool. You do NOT want to
be compiling your source in the pre-comit hook; it'll slow everything
down - can you imagine having to wait 20 minutes for your commit to
complete because you're waiting on a compile?
Instead, the CI system builds the source after each commit and sends
out an email informing the whole team whether the build was successful
or not, and if not, who broke the build.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-09-06 13:47:52 CEST