Changeset 80190
- Timestamp:
- 07/06/11 08:35:46 (4 years ago)
- File:
-
- 1 edited
-
contrib/buildbot/master.cfg (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
contrib/buildbot/master.cfg
r80188 r80190 1 1 # -*- python -*- 2 2 # ex: set syntax=python: 3 4 import json 3 5 4 6 # This is a buildmaster config file. It must be installed as … … 12 14 # (where /opt/local shouldn't be messed with) and the production server (where 13 15 # it has to be) 14 production = False16 production = True 15 17 16 18 ####### BUILDSLAVES … … 20 22 # slave name and password must be configured on the slave. 21 23 from buildbot.buildslave import BuildSlave 22 if production: 23 # FIXME 24 c['slaves'] = [] 24 25 c['slaves'] = [] 26 if production: 27 slavedata = json.load(open('slaves.json')) 28 for slave, pwd in slavedata.items(): 29 c['slaves'].append(BuildSlave(slave, pwd)) 25 30 else: 26 31 c['slaves'] = [BuildSlave("snowleopard-x86_64", "pass")] 32 27 33 28 34 # 'slavePortnum' defines the TCP port to listen on for connections from slaves. 29 35 # This must match the value configured into the buildslaves (with their 30 36 # --master option) 31 c['slavePortnum'] = 998937 c['slavePortnum'] = 17000 32 38 33 39 ####### CHANGESOURCES … … 41 47 if production: 42 48 from buildbot.changes.pb import PBChangeSource 43 # FIXME: real username and password44 c['change_source'] = PBChangeSource(user= 'change', passwd='changepw')49 sourcedata = json.load(open('source.json')) 50 c['change_source'] = PBChangeSource(user=sourcedata[0], passwd=sourcedata[1]) 45 51 else: 46 52 from buildbot.changes.svnpoller import SVNPoller … … 162 168 163 169 if production: 164 # FIXME 165 c['builders']= [] 166 else: 167 c['builders']= [ 168 BuilderConfig(name="buildbase", 169 slavenames=["snowleopard-x86_64"], 170 factory=base_factory), 171 BuilderConfig(name="buildports", 172 slavenames=["snowleopard-x86_64"], 173 factory=ports_factory) 174 ] 170 slavenames = ["apple-snowleopard-x86_64"] 171 else: 172 slavenames = ["snowleopard-x86_64"] 173 174 c['builders']= [ 175 BuilderConfig(name="buildbase", 176 slavenames=slavenames, 177 factory=base_factory), 178 BuilderConfig(name="buildports", 179 slavenames=slavenames, 180 factory=ports_factory) 181 ] 175 182 176 183 ####### STATUS TARGETS … … 191 198 forceAllBuilds = False, 192 199 pingBuilder = False, 193 stopBuild = False,200 stopBuild = True, 194 201 stopAllBuilds = False, 195 202 cancelPendingBuild = False, 196 203 ) 197 c['status'].append(html.WebStatus(http_port=80 10, authz=authz_cfg))204 c['status'].append(html.WebStatus(http_port=80, authz=authz_cfg)) 198 205 199 206 ####### PROJECT IDENTITY … … 212 219 # without some help. 213 220 214 c['buildbotURL'] = "http:// localhost:8010/"221 c['buildbotURL'] = "http://build.macports.org/" 215 222 216 223 ####### DB URL
Note: See TracChangeset
for help on using the changeset viewer.

