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

raimue at macports.org raimue at macports.org
Sun Oct 30 19:22:03 CET 2016


Revision: 154472
          https://trac.macports.org/changeset/154472
Author:   raimue at macports.org
Date:     2016-10-30 19:22:03 +0100 (Sun, 30 Oct 2016)
Log Message:
-----------
buildbot: add job for portindex2postgres

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

Modified: contrib/buildbot-test/master.cfg
===================================================================
--- contrib/buildbot-test/master.cfg	2016-10-30 17:59:40 UTC (rev 154471)
+++ contrib/buildbot-test/master.cfg	2016-10-30 18:22:03 UTC (rev 154472)
@@ -64,6 +64,7 @@
     'portsurl': 'https://github.com/macports/macports-ports.git',
     'wwwurl': 'https://github.com/macports/macports-www.git',
     'guideurl': 'https://github.com/macports/macports-guide.git',
+    'infraurl': 'https://github.com/macports/macports-infrastructure.git',
 
     # Tooling
     'slaveprefix': '/opt/local',
@@ -256,6 +257,20 @@
             builderNames=['jobs-www'])
         ))
 
+if 'portindex' in config['deploy']:
+    c['schedulers'].extend((
+        schedulers.SingleBranchScheduler(
+            name='portindex',
+            treeStableTimer=300,
+            change_filter=util.ChangeFilter(
+                repository=config['portsurl'][:-4],
+                branch='master'),
+            builderNames=['jobs-portindex']),
+        schedulers.ForceScheduler(
+            name='portindex_force',
+            builderNames=['jobs-portindex'])
+        ))
+
 portbuilders = izip(portbuilder_triggerables, portbuilder_buildernames)
 c['schedulers'].extend(schedulers.Triggerable(name=t, builderNames=[b])
                        for t, b in portbuilders)
@@ -534,6 +549,29 @@
             srcpath='www',
             destpath=config['deploy']['www']['destpath']))
 
+if 'portindex' in config['deploy']:
+    jobs_portindex_factory = util.BuildFactory()
+    # TODO: incremental mode with cleanup?
+    jobs_portindex_factory.addStep(steps.Git(
+        repourl=config['infraurl'],
+        progress=True,
+        mode='full',
+        method='copy',
+        workdir='build/infrastructure'))
+    jobs_portindex_factory.addStep(steps.ShellCommand(
+        command='port-tclsh infrastructure/jobs/portindex2postgres.tcl',
+        name='portindex2postgres',
+        description=['generating'],
+        descriptionDone=['done']))
+    jobs_portindex_factory.addSteps(
+        make_rsync_deploy_steps(
+            host=config['deploy']['portindex']['host'], 
+            user=config['deploy']['portindex']['user'],
+            sshkeyfile=config['deploy']['portindex']['sshkeyfile'],
+            sshknownhostsfile=config['deploy']['portindex']['sshknownhostsfile'],
+            srcpath='PortIndex.sql',
+            destpath=config['deploy']['portindex']['destpath']))
+
 if 'guide' in config['deploy']:
     jobs_guide_factory = util.BuildFactory()
     # TODO: incremental mode with cleanup?
@@ -616,6 +654,14 @@
             factory=jobs_www_factory,
             tags=['jobs', 'docs', 'www'],
             env=merge_dicts(env_buildinfo, {'PATH': path_ports})))
+if 'portindex' in config['deploy']:
+    c['builders'].append(
+        util.BuilderConfig(
+            name='jobs-portindex',
+            slavenames=['jobs'],
+            factory=jobs_portindex_factory,
+            tags=['jobs', 'portindex', 'www'],
+            env=merge_dicts(env_buildinfo, {'PATH': path_ports})))
 if 'guide' in config['deploy']:
     c['builders'].append(
         util.BuilderConfig(
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-changes/attachments/20161030/3f0ee4ef/attachment-0002.html>


More information about the macports-changes mailing list