OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 import types | 5 import types |
6 | 6 |
7 from recipe_engine.config import config_item_context, ConfigGroup, BadConf | 7 from recipe_engine.config import config_item_context, ConfigGroup, BadConf |
8 from recipe_engine.config import ConfigList, Dict, Single, Static, Set, List | 8 from recipe_engine.config import ConfigList, Dict, Single, Static, Set, List |
9 | 9 |
10 from . import api as gclient_api | 10 from . import api as gclient_api |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 build(c) | 401 build(c) |
402 c.got_revision_mapping['build'] = 'got_build_revision' | 402 c.got_revision_mapping['build'] = 'got_build_revision' |
403 | 403 |
404 @config_ctx(config_vars={'GIT_MODE': True}) | 404 @config_ctx(config_vars={'GIT_MODE': True}) |
405 def build_limited(c): | 405 def build_limited(c): |
406 if not c.GIT_MODE: # pragma: no cover | 406 if not c.GIT_MODE: # pragma: no cover |
407 raise BadConf('build_limited only supports git') | 407 raise BadConf('build_limited only supports git') |
408 s = c.solutions.add() | 408 s = c.solutions.add() |
409 s.name = 'build_limited' | 409 s.name = 'build_limited' |
410 s.url = 'https://chrome-internal.googlesource.com/chrome/tools/build_limited' | 410 s.url = 'https://chrome-internal.googlesource.com/chrome/tools/build_limited' |
| 411 # In order to run presubmit, we checkout the whole build_limited repository |
| 412 # and build repository next to it. However, the patch in CQ needs to be |
| 413 # applied to one of the subfolders of build_limited only and run_presubmit.py |
| 414 # uses the patch to this directory (from gclient root) to find the property |
| 415 # with checked out revision. Since all these subfolders are the part of a |
| 416 # single repository, we map them to the same property here. |
411 c.got_revision_mapping['build_limited'] = 'got_revision' | 417 c.got_revision_mapping['build_limited'] = 'got_revision' |
| 418 c.got_revision_mapping['build_limited/scripts/slave'] = 'got_revision' |
412 # We do not use 'includes' here, because we want build_internal to be the | 419 # We do not use 'includes' here, because we want build_internal to be the |
413 # first solution in the list as run_presubmit computes upstream revision | 420 # first solution in the list as run_presubmit computes upstream revision |
414 # from the first solution. | 421 # from the first solution. |
415 build(c) | 422 build(c) |
416 c.got_revision_mapping['build'] = 'got_build_revision' | 423 c.got_revision_mapping['build'] = 'got_build_revision' |
417 | 424 |
418 @config_ctx(includes=['chromium', 'chrome_internal']) | 425 @config_ctx(includes=['chromium', 'chrome_internal']) |
419 def perf(c): | 426 def perf(c): |
420 s = c.solutions[0] | 427 s = c.solutions[0] |
421 s.custom_vars['llvm_url'] = 'svn://svn-mirror.golo.chromium.org/llvm-project' | 428 s.custom_vars['llvm_url'] = 'svn://svn-mirror.golo.chromium.org/llvm-project' |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
510 soln.url = ('https://chromium.googlesource.com/external/github.com/' | 517 soln.url = ('https://chromium.googlesource.com/external/github.com/' |
511 'catapult-project/catapult.git') | 518 'catapult-project/catapult.git') |
512 c.got_revision_mapping['catapult'] = 'got_revision' | 519 c.got_revision_mapping['catapult'] = 'got_revision' |
513 | 520 |
514 @config_ctx(includes=['infra_internal'], config_vars={'GIT_MODE': True}) | 521 @config_ctx(includes=['infra_internal'], config_vars={'GIT_MODE': True}) |
515 def infradata_config_internal(c): | 522 def infradata_config_internal(c): |
516 soln = c.solutions.add() | 523 soln = c.solutions.add() |
517 soln.name = 'infra-data-configs' | 524 soln.name = 'infra-data-configs' |
518 soln.url = 'https://chrome-internal.googlesource.com/infradata/config.git' | 525 soln.url = 'https://chrome-internal.googlesource.com/infradata/config.git' |
519 c.got_revision_mapping['infra-data-config'] = 'got_revision' | 526 c.got_revision_mapping['infra-data-config'] = 'got_revision' |
OLD | NEW |