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

Re: How to automatically run some test when check-in

From: Kevin Wu <kevinwu.chn_at_gmail.com>
Date: Sat, 12 Jun 2010 17:55:50 +0800

Thanks to those replied.

I want to try svn hooks first.

After reading the documentation, I still don't know how to get the filename
and its path of the file being committed when the post-commit hook fires.

The post-commit hook just has two arguments:

1. Repository path
2. Revision number created by the commit

On Sat, Jun 12, 2010 at 12:07 PM, Les Mikesell <lesmikesell_at_gmail.com>wrote:

> Kevin Wu wrote:
>> Hi,
>> I am new to svn.
>> I want that every time someone checks in his or her code, the sever can
>> invoke some tests, which might run on another server.
>> The svn sever only invokes the tests; it doesn't run them.
>> Is svn capable of doing this?
> You might run some ssh command as a post-commit hook, but you would
> probably be better off using something like hudson (http://hudson-ci.org/)
> which can poll for changes and run jobs with a more complete cross-platform
> framework.
> --
> Les Mikesell
> lesmikesell_at_gmail.com

Best wishes,
Kevin Wu
Received on 2010-06-12 11:56:31 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.