Opened 16 years ago
Closed 16 years ago
#347 closed task (fixed)
PostGIS SVN post-commit hooks
Reported by: | pramsey | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | SysAdmin | Keywords: | svn |
Cc: | Mateusz Łoskot, kneufeld |
Description
The old repository has the following hooks that need to be added:
REPOS="$1" REV="$2" /home/svn/bin/commit-email.pl -s "svn -" -h postgis.refractions.net "$REPOS" "$REV" postgis-commits@postgis.refractions.net /home/svn/bin/ciabot_postgis.py "$REPOS" "$REV" "postgis" & if svnlook dirs-changed /home/svn/repositories/postgis | grep trunk >/dev/null 2>&1; then /usr/bin/wget -O - -q -b http://postgis.refractions.net:8082/job/PostGIS-trunk/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://postgis.refractions.net:8082/job/PostGIS-branch/build?token=build_it fi
Change History (7)
comment:1 by , 16 years ago
comment:2 by , 16 years ago
Here's the relevant parts (it's a standard script)
project = "postgis" pathRegex = r""" ^( # Start at beginning of path ( (?P<module>[^/]+) /trunk ) | ( (?P<bmodule>[^/]+) /(branches|tags)/ (?P<branch>[^/]+) ) )/? # Slurp up trailing slash """
comment:3 by , 16 years ago
generic CIA hook added and email hook added
/var/www/svn/hookscripts/commit-email.pl "$REPOS" "$REV" --from svn_postgis@osgeo.o rg postgis-commits@lists.osgeo.org & /var/www/svn/hookscripts/ciabot_svn.py "$REPOS" "$REV" "postgis" &
I have not implemented the wget that tickles the builder on postgis.refractions.net, as I do not know if this is still to be used.
The postgis-commits email list needs to be created to complete this task.
comment:4 by , 16 years ago
Cc: | added |
---|---|
Keywords: | svn added |
comment:6 by , 16 years ago
Cc: | added |
---|
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.
comment:7 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
We have working hooks for the postgis branch, trunk, and raster directories that trigger autobuilds for each, currently located here: http://office.refractions.net:1500/
The buildbot tests the triggered build, generates docbook html and pdf docs, and performs regression testing against 8.2, 8.3, and 8.4 (though there is still some regression testing for wktraster that could be done). At least now the website docs and tarball snapshots are up to date.
It's agreed this buildbot is not the best solution since the box is not available to all developers. If anyone wants to setup other bots that test in other environments, please feel free.
-- Kevin
Paul,
I'm not sure but perhaps it's helpful to admins to show content of /home/svn/bin/ciabot_postgis.py file.