| 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 # This is the buildmaster config file for the 'nacl' bot. It must | 8 # This is the buildmaster config file for the 'nacl' bot. It must |
| 9 # be installed as 'master.cfg' in your buildmaster's base directory | 9 # be installed as 'master.cfg' in your buildmaster's base directory |
| 10 # (although the filename can be changed with the --basedir option to | 10 # (although the filename can be changed with the --basedir option to |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 | 44 |
| 45 # TODO(xusydoc): make Master subclasses handle these overrides automatically. | 45 # TODO(xusydoc): make Master subclasses handle these overrides automatically. |
| 46 config.Master.perf_base_url = ActiveMaster.perf_base_url | 46 config.Master.perf_base_url = ActiveMaster.perf_base_url |
| 47 | 47 |
| 48 # gatekeeper-ng is used; see build/scripts/slave/gatekeeper*.json | 48 # gatekeeper-ng is used; see build/scripts/slave/gatekeeper*.json |
| 49 | 49 |
| 50 # This is the dictionary that the buildmaster pays attention to. We also use | 50 # This is the dictionary that the buildmaster pays attention to. We also use |
| 51 # a shorter alias to save typing. | 51 # a shorter alias to save typing. |
| 52 c = BuildmasterConfig = {} | 52 c = BuildmasterConfig = {} |
| 53 | 53 |
| 54 config.DatabaseSetup(c, require_dbconfig=ActiveMaster.is_production_host) | 54 config.DatabaseSetup(c) |
| 55 | 55 |
| 56 master_poller = gitiles_poller.GitilesPoller(nacl_source_url) | 56 master_poller = gitiles_poller.GitilesPoller(nacl_source_url) |
| 57 | 57 |
| 58 c['change_source'] = [master_poller] | 58 c['change_source'] = [master_poller] |
| 59 | 59 |
| 60 def F_NACL_RECIPE(): | 60 def F_NACL_RECIPE(): |
| 61 return annotator_factory.AnnotatorFactory().BaseFactory(recipe='nacl', | 61 return annotator_factory.AnnotatorFactory().BaseFactory(recipe='nacl', |
| 62 factory_properties = {'slavetype': 'BuilderTester'}); | 62 factory_properties = {'slavetype': 'BuilderTester'}); |
| 63 | 63 |
| 64 | 64 |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 # Adds common status and tools to this master. | 244 # Adds common status and tools to this master. |
| 245 master_utils.AutoSetupMaster( | 245 master_utils.AutoSetupMaster( |
| 246 c, ActiveMaster, | 246 c, ActiveMaster, |
| 247 public_html='../master.chromium/public_html', | 247 public_html='../master.chromium/public_html', |
| 248 tagComparator=getattr(c['change_source'][0], 'comparator', None), | 248 tagComparator=getattr(c['change_source'][0], 'comparator', None), |
| 249 templates=['./templates', '../master.chromium/templates']) | 249 templates=['./templates', '../master.chromium/templates']) |
| 250 | 250 |
| 251 | 251 |
| 252 # Adjust the buildCaches to be 3x the number of slaves per builder. | 252 # Adjust the buildCaches to be 3x the number of slaves per builder. |
| 253 c['autoBuildCacheRatio'] = 3 | 253 c['autoBuildCacheRatio'] = 3 |
| OLD | NEW |