| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 # These modules come from scripts/master, which must be in the PYTHONPATH. | 5 # These modules come from scripts/master, which must be in the PYTHONPATH. |
| 6 from master import master_utils | 6 from master import master_utils |
| 7 from master import slaves_list | 7 from master import slaves_list |
| 8 | 8 |
| 9 import config | 9 import config |
| 10 import master_site_config | 10 import master_site_config |
| 11 ActiveMaster = master_site_config.Libyuv | 11 ActiveMaster = master_site_config.Libyuv |
| 12 | 12 |
| 13 c = BuildmasterConfig = {} | 13 c = BuildmasterConfig = {} |
| 14 c['change_source'] = [] | 14 c['change_source'] = [] |
| 15 c['schedulers'] = [] | 15 c['schedulers'] = [] |
| 16 c['builders'] = [] | 16 c['builders'] = [] |
| 17 c['status'] = [] | 17 c['status'] = [] |
| 18 | 18 |
| 19 config.DatabaseSetup(c, require_dbconfig=ActiveMaster.is_production_host) | 19 config.DatabaseSetup(c) |
| 20 | 20 |
| 21 import master_source_cfg | 21 import master_source_cfg |
| 22 import master_win_cfg | 22 import master_win_cfg |
| 23 import master_mac_cfg | 23 import master_mac_cfg |
| 24 import master_linux_cfg | 24 import master_linux_cfg |
| 25 import master_android_cfg | 25 import master_android_cfg |
| 26 | 26 |
| 27 master_source_cfg.Update(config, c) | 27 master_source_cfg.Update(config, c) |
| 28 master_win_cfg.Update(c) | 28 master_win_cfg.Update(c) |
| 29 master_mac_cfg.Update(c) | 29 master_mac_cfg.Update(c) |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 if ActiveMaster.is_production_host: | 62 if ActiveMaster.is_production_host: |
| 63 from buildbot.status import mail | 63 from buildbot.status import mail |
| 64 lookup = master_utils.FilterDomain( | 64 lookup = master_utils.FilterDomain( |
| 65 permitted_domains=ActiveMaster.permitted_domains) | 65 permitted_domains=ActiveMaster.permitted_domains) |
| 66 c['status'].append(mail.MailNotifier( | 66 c['status'].append(mail.MailNotifier( |
| 67 fromaddr=ActiveMaster.from_address, | 67 fromaddr=ActiveMaster.from_address, |
| 68 extraRecipients=[ActiveMaster.from_address], | 68 extraRecipients=[ActiveMaster.from_address], |
| 69 lookup=lookup, | 69 lookup=lookup, |
| 70 mode='problem', | 70 mode='problem', |
| 71 relayhost=config.Master.smtp)) | 71 relayhost=config.Master.smtp)) |
| OLD | NEW |