| 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 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 609 @config_ctx(includes=['infra']) | 609 @config_ctx(includes=['infra']) |
| 610 def recipes_py(c): | 610 def recipes_py(c): |
| 611 c.revisions['infra'] = 'origin/master' | 611 c.revisions['infra'] = 'origin/master' |
| 612 # TODO(tandrii): make use of c.patch_projects. | 612 # TODO(tandrii): make use of c.patch_projects. |
| 613 c.revisions['infra/recipes-py'] = ( | 613 c.revisions['infra/recipes-py'] = ( |
| 614 gclient_api.RevisionFallbackChain('origin/master')) | 614 gclient_api.RevisionFallbackChain('origin/master')) |
| 615 m = c.got_revision_mapping | 615 m = c.got_revision_mapping |
| 616 del m['infra'] | 616 del m['infra'] |
| 617 m['infra/recipes-py'] = 'got_revision' | 617 m['infra/recipes-py'] = 'got_revision' |
| 618 | 618 |
| 619 @config_ctx(config_vars={'GIT_MODE': True}) |
| 620 def recipes_py_bare(c): |
| 621 soln = c.solutions.add() |
| 622 soln.name = 'recipes-py' |
| 623 soln.url = ('https://chromium.googlesource.com/external/github.com/' |
| 624 'luci/recipes-py') |
| 625 c.got_revision_mapping['recipes-py'] = 'got_revision' |
| 626 |
| 619 @config_ctx() | 627 @config_ctx() |
| 620 def chrome_from_buildspec(c): # pragma: no cover | 628 def chrome_from_buildspec(c): # pragma: no cover |
| 621 soln = c.solutions.add() | 629 soln = c.solutions.add() |
| 622 soln.name = 'chrome_from_buildspec' | 630 soln.name = 'chrome_from_buildspec' |
| 623 # This URL has to be augmented with the appropriate bucket by the recipe using | 631 # This URL has to be augmented with the appropriate bucket by the recipe using |
| 624 # it. | 632 # it. |
| 625 soln.url = ('svn://svn-mirror.golo.chromium.org/chrome-internal/trunk/tools/' | 633 soln.url = ('svn://svn-mirror.golo.chromium.org/chrome-internal/trunk/tools/' |
| 626 'buildspec/build/') | 634 'buildspec/build/') |
| 627 soln.custom_vars['svn_url'] = 'svn://svn-mirror.golo.chromium.org' | 635 soln.custom_vars['svn_url'] = 'svn://svn-mirror.golo.chromium.org' |
| 628 soln.custom_deps = {} | 636 soln.custom_deps = {} |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 672 soln = c.solutions.add() | 680 soln = c.solutions.add() |
| 673 soln.name = 'gerrit-test-cq-normal' | 681 soln.name = 'gerrit-test-cq-normal' |
| 674 soln.url = 'https://chromium.googlesource.com/playground/gerrit-cq/normal.git' | 682 soln.url = 'https://chromium.googlesource.com/playground/gerrit-cq/normal.git' |
| 675 | 683 |
| 676 # TODO(phajdan.jr): Move to proper repo and add coverage. | 684 # TODO(phajdan.jr): Move to proper repo and add coverage. |
| 677 @config_ctx() | 685 @config_ctx() |
| 678 def valgrind(c): # pragma: no cover | 686 def valgrind(c): # pragma: no cover |
| 679 """Add Valgrind binaries to the gclient solution.""" | 687 """Add Valgrind binaries to the gclient solution.""" |
| 680 c.solutions[0].custom_deps['src/third_party/valgrind'] = \ | 688 c.solutions[0].custom_deps['src/third_party/valgrind'] = \ |
| 681 ChromiumGitURL(c, 'chromium', 'deps', 'valgrind', 'binaries') | 689 ChromiumGitURL(c, 'chromium', 'deps', 'valgrind', 'binaries') |
| OLD | NEW |