[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Automatic build of source on every check-in

From: Andy Levy <andy.levy_at_gmail.com>
Date: Sat, 6 Sep 2008 07:47:13 -0400

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

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.