| OLD | NEW |
| 1 # -*- python -*- | 1 # -*- python -*- |
| 2 # ex: set syntax=python: | 2 # ex: set syntax=python: |
| 3 | 3 |
| 4 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 4 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 5 # Use of this source code is governed by a BSD-style license that can be | 5 # Use of this source code is governed by a BSD-style license that can be |
| 6 # found in the LICENSE file. | 6 # found in the LICENSE file. |
| 7 | 7 |
| 8 # It has one job: define a dictionary named BuildmasterConfig. This | 8 # It has one job: define a dictionary named BuildmasterConfig. This |
| 9 # dictionary has a variety of keys to control different aspects of the | 9 # dictionary has a variety of keys to control different aspects of the |
| 10 # buildmaster. They are documented in docs/config.xhtml . | 10 # buildmaster. They are documented in docs/config.xhtml . |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 utils.monkey_patch_remoteshell() | 35 utils.monkey_patch_remoteshell() |
| 36 | 36 |
| 37 MASTER_HOST = ActiveMaster.master_host | 37 MASTER_HOST = ActiveMaster.master_host |
| 38 WEB_STATUS = True | 38 WEB_STATUS = True |
| 39 MAIL_NOTIFIER = ActiveMaster.is_production_host | 39 MAIL_NOTIFIER = ActiveMaster.is_production_host |
| 40 | 40 |
| 41 # This is the dictionary that the buildmaster pays attention to. We also use | 41 # This is the dictionary that the buildmaster pays attention to. We also use |
| 42 # a shorter alias to save typing. | 42 # a shorter alias to save typing. |
| 43 c = BuildmasterConfig = {} | 43 c = BuildmasterConfig = {} |
| 44 | 44 |
| 45 config.DatabaseSetup(c, require_dbconfig=ActiveMaster.is_production_host) | 45 config.DatabaseSetup(c) |
| 46 | 46 |
| 47 # 'slavePortnum' defines the TCP port to listen on. This must match the value | 47 # 'slavePortnum' defines the TCP port to listen on. This must match the value |
| 48 # configured into the buildslaves (with their --master option) | 48 # configured into the buildslaves (with their --master option) |
| 49 c['slavePortnum'] = ActiveMaster.slave_port | 49 c['slavePortnum'] = ActiveMaster.slave_port |
| 50 | 50 |
| 51 slaves = slaves_list.SlavesList('slaves.cfg', 'DartFYI') | 51 slaves = slaves_list.SlavesList('slaves.cfg', 'DartFYI') |
| 52 | 52 |
| 53 annotator = annotator_factory.AnnotatorFactory() | 53 annotator = annotator_factory.AnnotatorFactory() |
| 54 | 54 |
| 55 def setup_channel(channel): | 55 def setup_channel(channel): |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 c['projectName'] = ActiveMaster.project_name | 369 c['projectName'] = ActiveMaster.project_name |
| 370 c['projectURL'] = config.Master.project_url | 370 c['projectURL'] = config.Master.project_url |
| 371 | 371 |
| 372 # the 'buildbotURL' string should point to the location where the buildbot's | 372 # the 'buildbotURL' string should point to the location where the buildbot's |
| 373 # internal web server (usually the html.Waterfall page) is visible. This | 373 # internal web server (usually the html.Waterfall page) is visible. This |
| 374 # typically uses the port number set in the Waterfall 'status' entry, but | 374 # typically uses the port number set in the Waterfall 'status' entry, but |
| 375 # with an externally-visible host name which the buildbot cannot figure out | 375 # with an externally-visible host name which the buildbot cannot figure out |
| 376 # without some help. | 376 # without some help. |
| 377 | 377 |
| 378 c['buildbotURL'] = ActiveMaster.buildbot_url | 378 c['buildbotURL'] = ActiveMaster.buildbot_url |
| OLD | NEW |