Changeset 81184
- Timestamp:
- 07/26/11 17:36:16 (4 years ago)
- File:
-
- 1 edited
-
contrib/buildbot/master.cfg (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
contrib/buildbot/master.cfg
r80503 r81184 68 68 from buildbot.changes.svnpoller import SVNPoller 69 69 c['change_source'] = [SVNPoller( 70 'https://svn.macports.org/repository/macports/trunk/base', 71 project='base', 70 'https://svn.macports.org/repository/macports/trunk', 72 71 svnbin='/opt/local/bin/svn', 73 72 pollinterval=300), 74 SVNPoller(75 'https://svn.macports.org/repository/macports/trunk/dports',76 project='ports',77 svnbin='/opt/local/bin/svn',78 pollinterval=300)79 73 ] 80 74 … … 82 76 83 77 # consider changes to _resources as unimportant 84 def ports_check_importance(change):78 def change_has_ports(change): 85 79 for f in change.files: 86 if f.split('/')[0] != "_resources": 80 if "_resources" in f: 81 continue 82 if "dports" in f and "Portfile" in f: 87 83 return True 88 84 return False 89 85 86 def change_has_base(change): 87 for f in change.files: 88 if f.startswith('base'): 89 return True 90 return False 91 92 90 93 # Configure the Schedulers, which decide how to react to incoming changes. 91 94 from buildbot.schedulers.basic import SingleBranchScheduler 92 95 from buildbot.changes.filter import ChangeFilter 93 base_filter = ChangeFilter(project="base") 94 ports_filter = ChangeFilter(project="ports") 95 96 from buildbot.schedulers.basic import SingleBranchScheduler 96 repofilter = ChangeFilter(repository="/svn/repositories/macports") 97 97 c['schedulers'] = [SingleBranchScheduler( 98 98 name="base", 99 treeStableTimer=300, 100 change_filter=base_filter, 99 treeStableTimer=10, 100 fileIsImportant=change_has_base, 101 change_filter = repofilter, 101 102 builderNames=["buildbase"]), 102 103 SingleBranchScheduler( 103 104 name="ports", 104 treeStableTimer= 30,105 change_filter=ports_filter,106 fileIsImportant=ports_check_importance,105 treeStableTimer=10, 106 fileIsImportant=change_has_ports, 107 change_filter = repofilter, 107 108 builderNames=["buildports"]) 108 109 ] … … 142 143 143 144 portset = set() 144 # paths should be category/portdir(/...)145 # paths should be dports/category/portdir(/...) 145 146 for f in self.build.allFiles(): 146 147 comps = f.split('/') 147 if len(comps) >= 2 and comps[0] != '_resources':148 if len(comps) >= 3 and comps[0] == 'dports': 148 149 portset.add(comps[1]) 149 150 portlist += ' ' + ' '.join(portset) … … 158 159 dlhost='' 159 160 dlpath='/www/hosts/packages.macports.org' 161 ulpath='archive_staging' 160 162 else: 161 163 prefix='%(workdir)s/opt/local' … … 163 165 dlhost='' 164 166 dlpath='./deployed_archives' 167 ulpath='archive_staging' 168 165 169 166 170 ports_factory = BuildFactory() … … 180 184 'SRC_PREFIX': WithProperties(src_prefix)})) 181 185 182 ulpath='archive_staging'183 186 ports_factory.addStep(ShellCommand(command=["./gather_archives.sh"], 184 187 name="gather archives", 185 188 description="gather distributable archives", 186 189 env={'PREFIX': WithProperties(prefix), 190 'HOME': '/tmp/', 187 191 'ULPATH': ulpath})) 188 192 # upload archives from build slave to master … … 203 207 name="status", 204 208 description="status", 205 env={'PREFIX': WithProperties(prefix)}, 209 env={'PREFIX': WithProperties(prefix), 210 'HOME': '/tmp/', 211 }, 206 212 logfiles={"portstatus": "portstatus.log"})) 207 213 # TODO: do we want to upload the individual logs so maintainers can review them? … … 263 269 if production: 264 270 c['buildbotURL'] = "http://build.macports.org/" 265 c['status'].append(html.WebStatus(http_port=8 0, authz=authz_cfg))271 c['status'].append(html.WebStatus(http_port=8710, authz=authz_cfg)) 266 272 else: 267 273 c['buildbotURL'] = "http://localhost:8010/"
Note: See TracChangeset
for help on using the changeset viewer.

