[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: Les Mikesell <lesmikesell_at_gmail.com>
Date: Sat, 12 Jun 2010 11:00:19 -0500

Ryan Schmidt wrote:
> On Jun 12, 2010, at 04:55, Kevin Wu wrote:
>
>> 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
>
> You feed the repository path and revision number to "svnlook changed".
>

Note that many files can change in one commit. You probably want your ssh
command to do an update of a working copy where the tests are performed which
will pick up all the changes. Also note that additional commits may happen
before earlier runs are complete - I'm not sure if these block or if your
scripts have to deal with it. Scheduling runs and collating the results are
just a few of the advantages of using hudson.

-- 
   Les Mikesell
    lesmikesell_at_gmail.com
Received on 2010-06-12 18:01:10 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.