[151107] contrib/buildbot-test/master.cfg

ryandesign at macports.org ryandesign at macports.org
Sun Aug 7 08:55:33 PDT 2016


Revision: 151107
          https://trac.macports.org/changeset/151107
Author:   ryandesign at macports.org
Date:     2016-08-07 08:55:33 -0700 (Sun, 07 Aug 2016)
Log Message:
-----------
buildbot-test: update descriptions and move cleanup step last

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

Modified: contrib/buildbot-test/master.cfg
===================================================================
--- contrib/buildbot-test/master.cfg	2016-08-07 15:51:50 UTC (rev 151106)
+++ contrib/buildbot-test/master.cfg	2016-08-07 15:55:33 UTC (rev 151107)
@@ -88,7 +88,6 @@
     from buildbot.changes.svnpoller import SVNPoller
     c['change_source'] = (SVNPoller(
         svnurl='https://svn.macports.org/repository/macports/trunk',
-        #'https://svn.macports.org/repository/macports/trunk',
         #svnbin='/opt/local/bin/svn',
         pollinterval=300,
         category='macports',
@@ -198,21 +197,21 @@
 base_factory.addStep(ShellCommand(
     command="make install",
     name="install",
-    description="install"))
+    description=["installing"],
+    descriptionDone=["install"]))
 base_factory.addStep(ShellCommand(
     command="make test",
     name="test",
-    description="test"))
+    description=["testing"],
+    descriptionDone=["test"]))
 base_factory.addStep(ShellCommand(
     command=WithProperties("make distclean; rm -rf %(workdir)s/opt/local"),
     name="clean",
-    description="clean"))
+    description=["cleaning"],
+    descriptionDone=["clean"]))
 
 # custom class to make the file list available on the slave...
 class SetPropertyFromCommandWithPortlist(SetPropertyFromCommand):
-    name = 'generate portlist'
-    description = 'generate portlist'
-
     def setBuild(self, build):
         SetPropertyFromCommand.setBuild(self, build)
 
@@ -298,14 +297,16 @@
     portwatcher_factory.addStep(ShellCommand(
         command=['./mpbb/mpbb', 'selfupdate', '--prefix', WithProperties(prefix)],
         name="selfupdate",
-        description="selfupdate",
+        description=["updating", "MacPorts"],
+        descriptionDone=["update", "MacPorts"],
         haltOnFailure=True))
 
     portwatcher_factory.addStep(ShellCommand(
         command=['./mpbb/mpbb', 'checkout', '--prefix', WithProperties(prefix), '--svn-url', svnurl],
         timeout=3600,
         name="checkout",
-        description="checkout",
+        description=["syncing", "ports"],
+        descriptionDone=["sync", "ports"],
         haltOnFailure=True))
 
     def extract_subportlist(rc, stdout, stderr):
@@ -329,7 +330,7 @@
         command=WithProperties('./mpbb/mpbb list-subports %(fullportlist)s'),
         extract_fn=extract_subportlist,
         name="subports",
-        description="subports"))
+        description=["listing", "subports"]))
 
     portwatcher_factory.addStep(TriggerWithPortlist(
         schedulerNames=[triggerable],
@@ -371,22 +372,22 @@
 portbuilder_factory.addStep(Compile(
     command=['./mpbb/mpbb', 'install-dependencies', '--prefix', WithProperties(prefix), '--port', WithProperties('%(portname)s')],
     name="install-dependencies",
-    description="installing deps",
-    descriptionDone="install deps",
+    description=["installing", "dependencies"],
+    descriptionDone=["install", "dependencies"],
     haltOnFailure=True))
 
 portbuilder_factory.addStep(Compile(
     command=['./mpbb/mpbb', 'install-port', '--prefix', WithProperties(prefix), '--port', WithProperties('%(portname)s')],
     name="install-port",
-    description="installing port",
-    descriptionDone="install port",
+    description=["installing", "port"],
+    descriptionDone=["install", "port"],
     haltOnFailure=True))
 
 portbuilder_factory.addStep(ShellCommand(
     command=['./mpbb/mpbb', 'gather-archives', '--prefix', WithProperties(prefix), '--port', WithProperties('%(portname)s'), '--archive-site', archivesite, '--staging-dir', ulpath],
     name="gather-archives",
-    description="gathering archives",
-    descriptionDone="gather archives",
+    description=["gathering", "archives"],
+    descriptionDone=["gather", "archives"],
     haltOnFailure=True))
 
 # upload archives from build slave to master
@@ -394,14 +395,6 @@
     slavesrc=ulpath,
     masterdest=WithProperties(ulpath_unique)))
 
-portbuilder_factory.addStep(ShellCommand(
-    command=['./mpbb/mpbb', 'cleanup', '--prefix', WithProperties(prefix), '--port', WithProperties('%(portname)s')],
-    name="cleanup",
-    description="cleaning up",
-    descriptionDone="clean up",
-    alwaysRun=True))
-
-
 # XXX: move deploy_archives.sh functionality to mp-buildbot
 # sign generated binaries and sync to download server (if distributable)
 if production:
@@ -414,11 +407,12 @@
                                'DLPATH': dlpath}))
 
 # TODO: do we want to upload the individual logs so maintainers can review them?
-#ports_factory.addStep(ShellCommand(command="./cleanup_old.sh",
-#                                   name="cleanup",
-#                                   description="cleanup",
-#                                   env={'PREFIX': WithProperties(prefix),
-#                                        'ULPATH': ulpath}))
+portbuilder_factory.addStep(ShellCommand(
+    command=['./mpbb/mpbb', 'cleanup', '--prefix', WithProperties(prefix), '--port', WithProperties('%(portname)s')],
+    name="cleanup",
+    description=["cleaning"],
+    descriptionDone=["clean"],
+    alwaysRun=True))
 
 # === BUILDER CONFIGURATION ===
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160807/cabde5b8/attachment.html>


More information about the macports-changes mailing list