| 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 | 11 |
| 12 ActiveMaster = master_site_config.ChromiumMemory | 12 ActiveMaster = master_site_config.ChromiumMemory |
| 13 | 13 |
| 14 c = BuildmasterConfig = {} | 14 c = BuildmasterConfig = {} |
| 15 c['change_source'] = [] | 15 c['change_source'] = [] |
| 16 c['schedulers'] = [] | 16 c['schedulers'] = [] |
| 17 c['builders'] = [] | 17 c['builders'] = [] |
| 18 c['status'] = [] | 18 c['status'] = [] |
| 19 | 19 |
| 20 config.DatabaseSetup(c, require_dbconfig=ActiveMaster.is_production_host) | 20 config.DatabaseSetup(c) |
| 21 | 21 |
| 22 import master_source_cfg | 22 import master_source_cfg |
| 23 import master_linux_cfg | 23 import master_linux_cfg |
| 24 import master_mac_cfg | 24 import master_mac_cfg |
| 25 import master_chromeos_cfg | 25 import master_chromeos_cfg |
| 26 | 26 |
| 27 master_source_cfg.Update(config, ActiveMaster, c) | 27 master_source_cfg.Update(config, ActiveMaster, c) |
| 28 master_linux_cfg.Update(config, ActiveMaster, c) | 28 master_linux_cfg.Update(config, ActiveMaster, c) |
| 29 master_mac_cfg.Update(config, ActiveMaster, c) | 29 master_mac_cfg.Update(config, ActiveMaster, c) |
| 30 master_chromeos_cfg.Update(config, ActiveMaster, c) | 30 master_chromeos_cfg.Update(config, ActiveMaster, c) |
| (...skipping 16 matching lines...) Expand all Loading... |
| 47 c['builders'], | 47 c['builders'], |
| 48 config.Master.GetBotPassword()) | 48 config.Master.GetBotPassword()) |
| 49 master_utils.VerifySetup(c, slaves) | 49 master_utils.VerifySetup(c, slaves) |
| 50 | 50 |
| 51 # Adds common status and tools to this master. | 51 # Adds common status and tools to this master. |
| 52 master_utils.AutoSetupMaster(c, ActiveMaster, | 52 master_utils.AutoSetupMaster(c, ActiveMaster, |
| 53 public_html='../master.chromium/public_html', | 53 public_html='../master.chromium/public_html', |
| 54 templates=['../master.chromium/templates'], | 54 templates=['../master.chromium/templates'], |
| 55 tagComparator=getattr(c['change_source'][0], 'comparator', None), | 55 tagComparator=getattr(c['change_source'][0], 'comparator', None), |
| 56 enable_http_status_push=ActiveMaster.is_production_host) | 56 enable_http_status_push=ActiveMaster.is_production_host) |
| OLD | NEW |