| 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 . |
| 11 | 11 |
| 12 from buildbot.changes import svnpoller | 12 from buildbot.changes import svnpoller |
| 13 from buildbot.status.mail import MailNotifier | 13 from buildbot.status.mail import MailNotifier |
| 14 from buildbot import scheduler | 14 from buildbot import scheduler |
| 15 | 15 |
| 16 from master import master_utils | 16 from master import master_utils |
| 17 from master import slaves_list | 17 from master import slaves_list |
| 18 from master.factory import drmemory_factory | 18 from master.factory import drmemory_factory |
| 19 from master.factory import chromium_factory | 19 from master.factory import chromium_factory |
| 20 | 20 |
| 21 import config | 21 import config |
| 22 ActiveMaster = config.Master.DrMemory | 22 import master_site_config |
| 23 ActiveMaster = master_site_config.DrMemory |
| 23 | 24 |
| 24 MASTER_HOST = ActiveMaster.master_host | 25 MASTER_HOST = ActiveMaster.master_host |
| 25 MAIL_NOTIFIER = ActiveMaster.is_production_host | 26 MAIL_NOTIFIER = ActiveMaster.is_production_host |
| 26 MASTER_PORT = ActiveMaster.master_port | 27 MASTER_PORT = ActiveMaster.master_port |
| 27 | 28 |
| 28 # This is the dictionary that the buildmaster pays attention to. We also use | 29 # This is the dictionary that the buildmaster pays attention to. We also use |
| 29 # a shorter alias to save typing. | 30 # a shorter alias to save typing. |
| 30 c = BuildmasterConfig = {} | 31 c = BuildmasterConfig = {} |
| 31 | 32 |
| 32 config.DatabaseSetup(c, require_dbconfig=ActiveMaster.is_production_host) | 33 config.DatabaseSetup(c, require_dbconfig=ActiveMaster.is_production_host) |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 c['projectName'] = ActiveMaster.project_name | 232 c['projectName'] = ActiveMaster.project_name |
| 232 c['projectURL'] = config.Master.project_url | 233 c['projectURL'] = config.Master.project_url |
| 233 | 234 |
| 234 # the 'buildbotURL' string should point to the location where the buildbot's | 235 # the 'buildbotURL' string should point to the location where the buildbot's |
| 235 # internal web server (usually the html.Waterfall page) is visible. This | 236 # internal web server (usually the html.Waterfall page) is visible. This |
| 236 # typically uses the port number set in the Waterfall 'status' entry, but | 237 # typically uses the port number set in the Waterfall 'status' entry, but |
| 237 # with an externally-visible host name which the buildbot cannot figure out | 238 # with an externally-visible host name which the buildbot cannot figure out |
| 238 # without some help. | 239 # without some help. |
| 239 | 240 |
| 240 c['buildbotURL'] = 'http://build.chromium.org/p/client.drmemory/' | 241 c['buildbotURL'] = 'http://build.chromium.org/p/client.drmemory/' |
| OLD | NEW |