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

RE: Build project in pre-commit

From: Bob Archer <Bob.Archer_at_amsi.com>
Date: Fri, 8 Apr 2011 14:42:50 -0400

> > Thanks for your answer. Our commits to /trunk are supposed to be
> > done rarely.
> > Basically we want to exclude source code of projects that for
> some
> > reasons cannot be built centrally (on the server where the
> > repository
> > is).
> > A project consists of java files in a directory and an ant
> script.
> > Unfortunately I have not found any well-known software to help
> with
> > this kind of buildings.
> Team City supports pre-tested commits. from their web site:
> "With TeamCity you can build, check and run automated tests on the
> server even before committing your changes - keeping your code base
> clean at all times. Optionally, you can set up TeamCity to
> automatically commit changes to your version control each time they
> pass all checks."

Another option would be to do all your development on a branch. Have you build scripts build from that branch. IF the build is successful perform a merge to trunk. If the build fails, don't do the merge. Since branch is never checked into there shouldn't be merge conflicts. (well, tree conflicts would still be possible.)

Received on 2011-04-08 20:43:23 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.