[SAC] Re: [OSGeo] #347: PostGIS SVN post-commit hooks

OSGeo trac_osgeo at osgeo.org
Mon Apr 27 15:23:35 EDT 2009


#347: PostGIS SVN post-commit hooks
----------------------+-----------------------------------------------------
  Reporter:  pramsey  |       Owner:  sac at lists.osgeo.org
      Type:  task     |      Status:  new                
  Priority:  normal   |   Component:  SAC                
Resolution:           |    Keywords:  svn                
----------------------+-----------------------------------------------------
Changes (by pramsey):

 * cc: kneufeld (added)

Comment:

 Kevin Neufeld writes:
 {{{
 Now that we are fully moved over to the osgeo SVN and I've had a chance to
 rebuild our autobuild environment, I need a couple of SVN hooks installed.

 When the svn was hosted here, I installed a couple of post-commit hooks
 that automatically triggered several test builds/regression tests/pdf
 generatation/etc... after every commit.

 I can I please get someone to install something similiar on the new
 svn.osgeo.org/postgis repo?

 i.e., something like this in post-commit:
 if svnlook dirs-changed /home/svn/repositories/postgis | grep trunk
 >/dev/null 2>&1; then
        /usr/bin/wget -O - -q -b http://office.refractions.net:8082/job/
 PostGIS-trunk-build/build?token=build_it
 fi
 if svnlook dirs-changed /home/svn/repositories/postgis | grep branches
 >/dev/null 2>&1; then
        /usr/bin/wget -O - -q -b http://office.refractions.net:8082/job/
 PostGIS-branch-build/build?token=build_it
 fi
 if svnlook dirs-changed /home/svn/repositories/postgis | grep branches
 >/dev/null 2>&1; then
        /usr/bin/wget -O - -q -b http://office.refractions.net:8082/job/
 WKTRaster-trunk-build/build?token=build_it
 fi

 (this will trigger independent builds for the PostGIS branch and trunk as
 well as the WKTRaster project).

 At the moment, the reference buildfarm is polling the branch and trunk
 directories for changes ... I'd think it'd be better to move this to a
 push operation.
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/osgeo/ticket/347#comment:6>
OSGeo <http://www.osgeo.org/>
OSGeo committee and general foundation issue tracker.


More information about the Sac mailing list