[80285] contrib/buildbot/master.cfg

wsiegrist at apple.com wsiegrist at apple.com
Fri Jul 8 09:22:57 PDT 2011


Revision: 80285
          http://trac.macports.org/changeset/80285
Author:   wsiegrist at apple.com
Date:     2011-07-08 09:22:57 -0700 (Fri, 08 Jul 2011)
Log Message:
-----------
Give meaningful names to steps. Support forced build properties for portlist.

Modified Paths:
--------------
    contrib/buildbot/master.cfg

Modified: contrib/buildbot/master.cfg
===================================================================
--- contrib/buildbot/master.cfg	2011-07-08 16:22:34 UTC (rev 80284)
+++ contrib/buildbot/master.cfg	2011-07-08 16:22:57 UTC (rev 80285)
@@ -125,16 +125,22 @@
 
 # custom class to make the file list available on the slave...
 class ShellCommandWithPortList(ShellCommand):
+         name = 'write portlist file'
+         description = 'write portlist file'
+
          def setBuild(self, build):
             ShellCommand.setBuild(self, build)
             
+            # support forced build properties
+            portlist = self.getProperty('portlist').strip()
+
             portset = set()
             # paths should be category/portdir(/...)
             for f in self.build.allFiles():
                 comps = f.split('/')
                 if len(comps) >= 2 and comps[0] != '_resources':
                     portset.add(comps[1])
-            portlist = ' '.join(portset)
+            portlist += ' ' + ' '.join(portset)
             self.setProperty('portlist', portlist)
 
 
@@ -157,6 +163,8 @@
 ports_factory.addStep(SVN(svnurl='https://svn.macports.org/repository/macports/contrib/mpab',
                       mode="update"))
 ports_factory.addStep(ShellCommand(command=["./mpsync.sh"],
+                                   name="sync",
+                                   description="sync",
                       env={'PREFIX': WithProperties(prefix),
                            'SRC_PREFIX': WithProperties(src_prefix),
                            'BASE_UPDATE': 'selfupdate'}))
@@ -167,16 +175,22 @@
                            'SRC_PREFIX': WithProperties(src_prefix)}))
 # sign generated binaries and sync to download server (if distributable)
 ports_factory.addStep(ShellCommand(command=["./deploy_archives.sh"],
+                                   name="deploy archives",
+                                   description="deploy archives",
                       env={'PREFIX': WithProperties(prefix),
                            'DLHOST': dlhost,
                            'DLPATH': dlpath}))
 
 # make a logfile summarising the success/failure status for each port
 ports_factory.addStep(ShellCommand(command=["./do_status.sh"],
+                                   name="status",
+                                   description="status",
                         env={'PREFIX': WithProperties(prefix)},
                         logfiles={"portstatus": "portstatus.log"}))
 # do we want to upload the individual logs so maintainers can review them?
-ports_factory.addStep(ShellCommand(command="rm -rf ./logs-*"))
+ports_factory.addStep(ShellCommand(command="rm -rf ./logs-*",
+                                   name="cleanup",
+                                   description="cleanup"))
 
 from buildbot.config import BuilderConfig
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110708/5ebda3ce/attachment.html>


More information about the macports-changes mailing list