| 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 |
| 11 | 11 |
| 12 | 12 |
| 13 def BaseConfig(USE_MIRROR=True, GIT_MODE=True, CACHE_DIR=None, | 13 def BaseConfig(USE_MIRROR=True, CACHE_DIR=None, |
| 14 PATCH_PROJECT=None, BUILDSPEC_VERSION=None, | 14 PATCH_PROJECT=None, BUILDSPEC_VERSION=None, |
| 15 **_kwargs): | 15 **_kwargs): |
| 16 deps = '.DEPS.git' if GIT_MODE else 'DEPS' | |
| 17 cache_dir = str(CACHE_DIR) if CACHE_DIR else None | 16 cache_dir = str(CACHE_DIR) if CACHE_DIR else None |
| 18 return ConfigGroup( | 17 return ConfigGroup( |
| 19 solutions = ConfigList( | 18 solutions = ConfigList( |
| 20 lambda: ConfigGroup( | 19 lambda: ConfigGroup( |
| 21 name = Single(basestring), | 20 name = Single(basestring), |
| 22 url = Single(basestring), | 21 url = Single(basestring), |
| 23 deps_file = Single(basestring, empty_val=deps, required=False, | 22 deps_file = Single(basestring, empty_val='.DEPS.git', required=False, |
| 24 hidden=False), | 23 hidden=False), |
| 25 managed = Single(bool, empty_val=True, required=False, hidden=False), | 24 managed = Single(bool, empty_val=True, required=False, hidden=False), |
| 26 custom_deps = Dict(value_type=(basestring, types.NoneType)), | 25 custom_deps = Dict(value_type=(basestring, types.NoneType)), |
| 27 custom_vars = Dict(value_type=basestring), | 26 custom_vars = Dict(value_type=basestring), |
| 28 safesync_url = Single(basestring, required=False), | 27 safesync_url = Single(basestring, required=False), |
| 29 | 28 |
| 30 revision = Single( | 29 revision = Single( |
| 31 (basestring, gclient_api.RevisionResolver), | 30 (basestring, gclient_api.RevisionResolver), |
| 32 required=False, hidden=True), | 31 required=False, hidden=True), |
| 33 ) | 32 ) |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 patch_projects = Dict(value_type=tuple, hidden=True), | 78 patch_projects = Dict(value_type=tuple, hidden=True), |
| 80 | 79 |
| 81 # Check out refs/branch-heads. | 80 # Check out refs/branch-heads. |
| 82 # TODO (machenbach): Only implemented for bot_update atm. | 81 # TODO (machenbach): Only implemented for bot_update atm. |
| 83 with_branch_heads = Single( | 82 with_branch_heads = Single( |
| 84 bool, | 83 bool, |
| 85 empty_val=False, | 84 empty_val=False, |
| 86 required=False, | 85 required=False, |
| 87 hidden=True), | 86 hidden=True), |
| 88 | 87 |
| 89 GIT_MODE = Static(bool(GIT_MODE)), | |
| 90 USE_MIRROR = Static(bool(USE_MIRROR)), | 88 USE_MIRROR = Static(bool(USE_MIRROR)), |
| 91 # TODO(tandrii): remove PATCH_PROJECT field. | 89 # TODO(tandrii): remove PATCH_PROJECT field. |
| 92 # DON'T USE THIS. WILL BE REMOVED. | 90 # DON'T USE THIS. WILL BE REMOVED. |
| 93 PATCH_PROJECT = Static(str(PATCH_PROJECT), hidden=True), | 91 PATCH_PROJECT = Static(str(PATCH_PROJECT), hidden=True), |
| 94 BUILDSPEC_VERSION= Static(BUILDSPEC_VERSION, hidden=True), | 92 BUILDSPEC_VERSION= Static(BUILDSPEC_VERSION, hidden=True), |
| 95 ) | 93 ) |
| 96 | 94 |
| 97 config_ctx = config_item_context(BaseConfig) | 95 config_ctx = config_item_context(BaseConfig) |
| 98 | 96 |
| 99 def ChromiumSvnSubURL(c, *pieces): # pragma: no cover | 97 def ChromiumSvnSubURL(c, *pieces): # pragma: no cover |
| 100 BASES = ('https://src.chromium.org', | 98 BASES = ('https://src.chromium.org', |
| 101 'svn://svn-mirror.golo.chromium.org') | 99 'svn://svn-mirror.golo.chromium.org') |
| 102 return '/'.join((BASES[c.USE_MIRROR],) + pieces) | 100 return '/'.join((BASES[c.USE_MIRROR],) + pieces) |
| 103 | 101 |
| 104 def ChromiumGitURL(_c, *pieces): | 102 def ChromiumGitURL(_c, *pieces): |
| 105 return '/'.join(('https://chromium.googlesource.com',) + pieces) | 103 return '/'.join(('https://chromium.googlesource.com',) + pieces) |
| 106 | 104 |
| 107 def ChromiumSrcURL(c): | 105 def ChromiumSrcURL(c): |
| 108 # TODO(phajdan.jr): Move to proper repo and add coverage. | 106 return ChromiumGitURL(c, 'chromium', 'src.git') |
| 109 if c.GIT_MODE: | |
| 110 return ChromiumGitURL(c, 'chromium', 'src.git') | |
| 111 else: # pragma: no cover | |
| 112 return ChromiumSvnSubURL(c, 'chrome', 'trunk', 'src') | |
| 113 | 107 |
| 114 def BlinkURL(c): | 108 def BlinkURL(c): |
| 115 # TODO(phajdan.jr): Move to proper repo and add coverage. | 109 return ChromiumGitURL(c, 'chromium', 'blink.git') |
| 116 if c.GIT_MODE: | |
| 117 return ChromiumGitURL(c, 'chromium', 'blink.git') | |
| 118 else: # pragma: no cover | |
| 119 return ChromiumSvnSubURL(c, 'blink', 'trunk') | |
| 120 | 110 |
| 121 def ChromeSvnSubURL(c, *pieces): # pragma: no cover | 111 def ChromeSvnSubURL(c, *pieces): # pragma: no cover |
| 122 BASES = ('svn://svn.chromium.org', | 112 BASES = ('svn://svn.chromium.org', |
| 123 'svn://svn-mirror.golo.chromium.org') | 113 'svn://svn-mirror.golo.chromium.org') |
| 124 return '/'.join((BASES[c.USE_MIRROR],) + pieces) | 114 return '/'.join((BASES[c.USE_MIRROR],) + pieces) |
| 125 | 115 |
| 126 # TODO(phajdan.jr): Move to proper repo and add coverage. | 116 # TODO(phajdan.jr): Move to proper repo and add coverage. |
| 127 def ChromeInternalGitURL(_c, *pieces): # pragma: no cover | 117 def ChromeInternalGitURL(_c, *pieces): # pragma: no cover |
| 128 return '/'.join(('https://chrome-internal.googlesource.com',) + pieces) | 118 return '/'.join(('https://chrome-internal.googlesource.com',) + pieces) |
| 129 | 119 |
| 130 def ChromeInternalSrcURL(c): | 120 def ChromeInternalSrcURL(c): |
| 131 # TODO(phajdan.jr): Move to proper repo and add coverage. | 121 return ChromeInternalGitURL(c, 'chrome', 'src-internal.git') |
| 132 if c.GIT_MODE: | |
| 133 return ChromeInternalGitURL(c, 'chrome', 'src-internal.git') | |
| 134 else: # pragma: no cover | |
| 135 return ChromeSvnSubURL(c, 'chrome-internal', 'trunk', 'src-internal') | |
| 136 | 122 |
| 137 def mirror_only(c, obj, default=None): | 123 def mirror_only(c, obj, default=None): |
| 138 return obj if c.USE_MIRROR else (default or obj.__class__()) | 124 return obj if c.USE_MIRROR else (default or obj.__class__()) |
| 139 | 125 |
| 140 @config_ctx() | 126 @config_ctx() |
| 141 def chromium_bare(c): | 127 def chromium_bare(c): |
| 142 s = c.solutions.add() | 128 s = c.solutions.add() |
| 143 s.name = 'src' | 129 s.name = 'src' |
| 144 s.url = ChromiumSrcURL(c) | 130 s.url = ChromiumSrcURL(c) |
| 145 s.custom_vars = mirror_only(c, { | 131 s.custom_vars = mirror_only(c, { |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 # and there's no gclient fallback, then the following line can be removed. | 256 # and there's no gclient fallback, then the following line can be removed. |
| 271 c.solutions[0].custom_vars['v8_branch'] = 'branches/bleeding_edge' | 257 c.solutions[0].custom_vars['v8_branch'] = 'branches/bleeding_edge' |
| 272 c.revisions['src/v8'] = 'HEAD' | 258 c.revisions['src/v8'] = 'HEAD' |
| 273 | 259 |
| 274 @config_ctx() | 260 @config_ctx() |
| 275 def v8_canary(c): | 261 def v8_canary(c): |
| 276 c.revisions['src/v8'] = 'origin/canary' | 262 c.revisions['src/v8'] = 'origin/canary' |
| 277 | 263 |
| 278 @config_ctx(includes=['chromium']) | 264 @config_ctx(includes=['chromium']) |
| 279 def oilpan(c): # pragma: no cover | 265 def oilpan(c): # pragma: no cover |
| 280 if c.GIT_MODE: | |
| 281 raise BadConf("Oilpan requires SVN for now") | |
| 282 c.solutions[0].custom_vars = { | 266 c.solutions[0].custom_vars = { |
| 283 'webkit_trunk': ChromiumSvnSubURL(c, 'blink', 'branches', 'oilpan') | 267 'webkit_trunk': ChromiumSvnSubURL(c, 'blink', 'branches', 'oilpan') |
| 284 } | 268 } |
| 285 c.solutions[0].custom_vars['sourceforge_url'] = mirror_only( | 269 c.solutions[0].custom_vars['sourceforge_url'] = mirror_only( |
| 286 c, | 270 c, |
| 287 'svn://svn-mirror.golo.chromium.org/%(repo)s', | 271 'svn://svn-mirror.golo.chromium.org/%(repo)s', |
| 288 'svn://svn.chromium.org/%(repo)s' | 272 'svn://svn.chromium.org/%(repo)s' |
| 289 ) | 273 ) |
| 290 | 274 |
| 291 c.revisions['src/third_party/WebKit'] = 'HEAD' | 275 c.revisions['src/third_party/WebKit'] = 'HEAD' |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 c.revisions['src'] = 'origin/master' | 326 c.revisions['src'] = 'origin/master' |
| 343 | 327 |
| 344 @config_ctx() | 328 @config_ctx() |
| 345 def gyp(c): | 329 def gyp(c): |
| 346 s = c.solutions.add() | 330 s = c.solutions.add() |
| 347 s.name = 'gyp' | 331 s.name = 'gyp' |
| 348 s.url = ChromiumGitURL(c, 'external', 'gyp.git') | 332 s.url = ChromiumGitURL(c, 'external', 'gyp.git') |
| 349 m = c.got_revision_mapping | 333 m = c.got_revision_mapping |
| 350 m['gyp'] = 'got_revision' | 334 m['gyp'] = 'got_revision' |
| 351 | 335 |
| 352 @config_ctx(config_vars={'GIT_MODE': True}) | 336 @config_ctx() |
| 353 def build(c): | 337 def build(c): |
| 354 if not c.GIT_MODE: # pragma: no cover | |
| 355 raise BadConf('build only supports git') | |
| 356 s = c.solutions.add() | 338 s = c.solutions.add() |
| 357 s.name = 'build' | 339 s.name = 'build' |
| 358 s.url = ChromiumGitURL(c, 'chromium', 'tools', 'build.git') | 340 s.url = ChromiumGitURL(c, 'chromium', 'tools', 'build.git') |
| 359 m = c.got_revision_mapping | 341 m = c.got_revision_mapping |
| 360 m['build'] = 'got_revision' | 342 m['build'] = 'got_revision' |
| 361 | 343 |
| 362 @config_ctx(config_vars={'GIT_MODE': True}) | 344 @config_ctx() |
| 363 def depot_tools(c): # pragma: no cover | 345 def depot_tools(c): # pragma: no cover |
| 364 if not c.GIT_MODE: | |
| 365 raise BadConf('depot_tools only supports git') | |
| 366 s = c.solutions.add() | 346 s = c.solutions.add() |
| 367 s.name = 'depot_tools' | 347 s.name = 'depot_tools' |
| 368 s.url = ChromiumGitURL(c, 'chromium', 'tools', 'depot_tools.git') | 348 s.url = ChromiumGitURL(c, 'chromium', 'tools', 'depot_tools.git') |
| 369 m = c.got_revision_mapping | 349 m = c.got_revision_mapping |
| 370 m['depot_tools'] = 'got_revision' | 350 m['depot_tools'] = 'got_revision' |
| 371 | 351 |
| 372 @config_ctx(config_vars={'GIT_MODE': True}) | 352 @config_ctx() |
| 373 def skia(c): # pragma: no cover | 353 def skia(c): # pragma: no cover |
| 374 if not c.GIT_MODE: | |
| 375 raise BadConf('skia only supports git') | |
| 376 s = c.solutions.add() | 354 s = c.solutions.add() |
| 377 s.name = 'skia' | 355 s.name = 'skia' |
| 378 s.url = 'https://skia.googlesource.com/skia.git' | 356 s.url = 'https://skia.googlesource.com/skia.git' |
| 379 m = c.got_revision_mapping | 357 m = c.got_revision_mapping |
| 380 m['skia'] = 'got_revision' | 358 m['skia'] = 'got_revision' |
| 381 | 359 |
| 382 @config_ctx(config_vars={'GIT_MODE': True}) | 360 @config_ctx() |
| 383 def chrome_golo(c): # pragma: no cover | 361 def chrome_golo(c): # pragma: no cover |
| 384 if not c.GIT_MODE: | |
| 385 raise BadConf('chrome_golo only supports git') | |
| 386 s = c.solutions.add() | 362 s = c.solutions.add() |
| 387 s.name = 'chrome_golo' | 363 s.name = 'chrome_golo' |
| 388 s.url = 'https://chrome-internal.googlesource.com/chrome-golo/chrome-golo.git' | 364 s.url = 'https://chrome-internal.googlesource.com/chrome-golo/chrome-golo.git' |
| 389 c.got_revision_mapping['chrome_golo'] = 'got_revision' | 365 c.got_revision_mapping['chrome_golo'] = 'got_revision' |
| 390 | 366 |
| 391 @config_ctx(config_vars={'GIT_MODE': True}) | 367 @config_ctx() |
| 392 def build_internal(c): | 368 def build_internal(c): |
| 393 if not c.GIT_MODE: # pragma: no cover | |
| 394 raise BadConf('build_internal only supports git') | |
| 395 s = c.solutions.add() | 369 s = c.solutions.add() |
| 396 s.name = 'build_internal' | 370 s.name = 'build_internal' |
| 397 s.url = 'https://chrome-internal.googlesource.com/chrome/tools/build.git' | 371 s.url = 'https://chrome-internal.googlesource.com/chrome/tools/build.git' |
| 398 c.got_revision_mapping['build_internal'] = 'got_revision' | 372 c.got_revision_mapping['build_internal'] = 'got_revision' |
| 399 # We do not use 'includes' here, because we want build_internal to be the | 373 # We do not use 'includes' here, because we want build_internal to be the |
| 400 # first solution in the list as run_presubmit computes upstream revision | 374 # first solution in the list as run_presubmit computes upstream revision |
| 401 # from the first solution. | 375 # from the first solution. |
| 402 build(c) | 376 build(c) |
| 403 c.got_revision_mapping['build'] = 'got_build_revision' | 377 c.got_revision_mapping['build'] = 'got_build_revision' |
| 404 | 378 |
| 405 @config_ctx(config_vars={'GIT_MODE': True}) | 379 @config_ctx() |
| 406 def build_internal_scripts_slave(c): | 380 def build_internal_scripts_slave(c): |
| 407 if not c.GIT_MODE: # pragma: no cover | |
| 408 raise BadConf('build_internal_scripts_slave only supports git') | |
| 409 s = c.solutions.add() | 381 s = c.solutions.add() |
| 410 s.name = 'build_internal/scripts/slave' | 382 s.name = 'build_internal/scripts/slave' |
| 411 s.url = ('https://chrome-internal.googlesource.com/' | 383 s.url = ('https://chrome-internal.googlesource.com/' |
| 412 'chrome/tools/build_limited/scripts/slave.git') | 384 'chrome/tools/build_limited/scripts/slave.git') |
| 413 c.got_revision_mapping['build_internal/scripts/slave'] = 'got_revision' | 385 c.got_revision_mapping['build_internal/scripts/slave'] = 'got_revision' |
| 414 # We do not use 'includes' here, because we want build_internal to be the | 386 # We do not use 'includes' here, because we want build_internal to be the |
| 415 # first solution in the list as run_presubmit computes upstream revision | 387 # first solution in the list as run_presubmit computes upstream revision |
| 416 # from the first solution. | 388 # from the first solution. |
| 417 build(c) | 389 build(c) |
| 418 c.got_revision_mapping['build'] = 'got_build_revision' | 390 c.got_revision_mapping['build'] = 'got_build_revision' |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 | 501 |
| 530 @config_ctx() | 502 @config_ctx() |
| 531 def dart(c): | 503 def dart(c): |
| 532 soln = c.solutions.add() | 504 soln = c.solutions.add() |
| 533 soln.name = 'sdk' | 505 soln.name = 'sdk' |
| 534 soln.url = ('https://chromium.googlesource.com/external/github.com/' + | 506 soln.url = ('https://chromium.googlesource.com/external/github.com/' + |
| 535 'dart-lang/sdk.git') | 507 'dart-lang/sdk.git') |
| 536 soln.deps_file = 'DEPS' | 508 soln.deps_file = 'DEPS' |
| 537 soln.managed = False | 509 soln.managed = False |
| 538 | 510 |
| 539 @config_ctx(config_vars={'GIT_MODE': True}) | 511 @config_ctx() |
| 540 def infra(c): | 512 def infra(c): |
| 541 soln = c.solutions.add() | 513 soln = c.solutions.add() |
| 542 soln.name = 'infra' | 514 soln.name = 'infra' |
| 543 soln.url = 'https://chromium.googlesource.com/infra/infra.git' | 515 soln.url = 'https://chromium.googlesource.com/infra/infra.git' |
| 544 c.got_revision_mapping['infra'] = 'got_revision' | 516 c.got_revision_mapping['infra'] = 'got_revision' |
| 545 | 517 |
| 546 p = c.patch_projects | 518 p = c.patch_projects |
| 547 p['luci-py'] = ('infra/luci', 'HEAD') | 519 p['luci-py'] = ('infra/luci', 'HEAD') |
| 548 # TODO(phajdan.jr): remove recipes-py when it's not used for project name. | 520 # TODO(phajdan.jr): remove recipes-py when it's not used for project name. |
| 549 p['recipes-py'] = ('infra/recipes-py', 'HEAD') | 521 p['recipes-py'] = ('infra/recipes-py', 'HEAD') |
| 550 p['recipe_engine'] = ('infra/recipes-py', 'HEAD') | 522 p['recipe_engine'] = ('infra/recipes-py', 'HEAD') |
| 551 | 523 |
| 552 @config_ctx(config_vars={'GIT_MODE': True}) | 524 @config_ctx() |
| 553 def infra_internal(c): # pragma: no cover | 525 def infra_internal(c): # pragma: no cover |
| 554 soln = c.solutions.add() | 526 soln = c.solutions.add() |
| 555 soln.name = 'infra_internal' | 527 soln.name = 'infra_internal' |
| 556 soln.url = 'https://chrome-internal.googlesource.com/infra/infra_internal.git' | 528 soln.url = 'https://chrome-internal.googlesource.com/infra/infra_internal.git' |
| 557 c.got_revision_mapping['infra_internal'] = 'got_revision' | 529 c.got_revision_mapping['infra_internal'] = 'got_revision' |
| 558 | 530 |
| 559 @config_ctx(includes=['infra']) | 531 @config_ctx(includes=['infra']) |
| 560 def luci_gae(c): | 532 def luci_gae(c): |
| 561 # luci/gae is checked out as a part of infra.git solution at HEAD. | 533 # luci/gae is checked out as a part of infra.git solution at HEAD. |
| 562 c.revisions['infra'] = 'origin/master' | 534 c.revisions['infra'] = 'origin/master' |
| (...skipping 30 matching lines...) Expand all Loading... |
| 593 @config_ctx(includes=['infra']) | 565 @config_ctx(includes=['infra']) |
| 594 def recipes_py(c): | 566 def recipes_py(c): |
| 595 c.revisions['infra'] = 'origin/master' | 567 c.revisions['infra'] = 'origin/master' |
| 596 # TODO(tandrii): make use of c.patch_projects. | 568 # TODO(tandrii): make use of c.patch_projects. |
| 597 c.revisions['infra/recipes-py'] = ( | 569 c.revisions['infra/recipes-py'] = ( |
| 598 gclient_api.RevisionFallbackChain('origin/master')) | 570 gclient_api.RevisionFallbackChain('origin/master')) |
| 599 m = c.got_revision_mapping | 571 m = c.got_revision_mapping |
| 600 del m['infra'] | 572 del m['infra'] |
| 601 m['infra/recipes-py'] = 'got_revision' | 573 m['infra/recipes-py'] = 'got_revision' |
| 602 | 574 |
| 603 @config_ctx(config_vars={'GIT_MODE': True}) | 575 @config_ctx() |
| 604 def recipes_py_bare(c): | 576 def recipes_py_bare(c): |
| 605 soln = c.solutions.add() | 577 soln = c.solutions.add() |
| 606 soln.name = 'recipes-py' | 578 soln.name = 'recipes-py' |
| 607 soln.url = ('https://chromium.googlesource.com/external/github.com/' | 579 soln.url = ('https://chromium.googlesource.com/external/github.com/' |
| 608 'luci/recipes-py') | 580 'luci/recipes-py') |
| 609 c.got_revision_mapping['recipes-py'] = 'got_revision' | 581 c.got_revision_mapping['recipes-py'] = 'got_revision' |
| 610 | 582 |
| 611 @config_ctx() | 583 @config_ctx() |
| 612 def chrome_from_buildspec(c): # pragma: no cover | 584 def chrome_from_buildspec(c): # pragma: no cover |
| 613 soln = c.solutions.add() | 585 soln = c.solutions.add() |
| 614 soln.name = 'chrome_from_buildspec' | 586 soln.name = 'chrome_from_buildspec' |
| 615 # This URL has to be augmented with the appropriate bucket by the recipe using | 587 # This URL has to be augmented with the appropriate bucket by the recipe using |
| 616 # it. | 588 # it. |
| 617 soln.url = ('svn://svn-mirror.golo.chromium.org/chrome-internal/trunk/tools/' | 589 soln.url = ('svn://svn-mirror.golo.chromium.org/chrome-internal/trunk/tools/' |
| 618 'buildspec/build/') | 590 'buildspec/build/') |
| 619 soln.custom_vars['svn_url'] = 'svn://svn-mirror.golo.chromium.org' | 591 soln.custom_vars['svn_url'] = 'svn://svn-mirror.golo.chromium.org' |
| 620 soln.custom_deps = {} | 592 soln.custom_deps = {} |
| 621 | 593 |
| 622 @config_ctx() | 594 @config_ctx() |
| 623 def catapult(c): | 595 def catapult(c): |
| 624 soln = c.solutions.add() | 596 soln = c.solutions.add() |
| 625 soln.name = 'catapult' | 597 soln.name = 'catapult' |
| 626 soln.url = ('https://chromium.googlesource.com/external/github.com/' | 598 soln.url = ('https://chromium.googlesource.com/external/github.com/' |
| 627 'catapult-project/catapult.git') | 599 'catapult-project/catapult.git') |
| 628 c.got_revision_mapping['catapult'] = 'got_revision' | 600 c.got_revision_mapping['catapult'] = 'got_revision' |
| 629 | 601 |
| 630 @config_ctx(includes=['infra_internal'], config_vars={'GIT_MODE': True}) | 602 @config_ctx(includes=['infra_internal']) |
| 631 def infradata_master_manager(c): | 603 def infradata_master_manager(c): |
| 632 soln = c.solutions.add() | 604 soln = c.solutions.add() |
| 633 soln.name = 'infra-data-master-manager' | 605 soln.name = 'infra-data-master-manager' |
| 634 soln.url = ( | 606 soln.url = ( |
| 635 'https://chrome-internal.googlesource.com/infradata/master-manager.git') | 607 'https://chrome-internal.googlesource.com/infradata/master-manager.git') |
| 636 c.got_revision_mapping['infra-data-master-manager'] = 'got_revision' | 608 c.got_revision_mapping['infra-data-master-manager'] = 'got_revision' |
| 637 | 609 |
| 638 @config_ctx() | 610 @config_ctx() |
| 639 def with_branch_heads(c): | 611 def with_branch_heads(c): |
| 640 c.with_branch_heads = True | 612 c.with_branch_heads = True |
| (...skipping 30 matching lines...) Expand all Loading... |
| 671 """Add Valgrind binaries to the gclient solution.""" | 643 """Add Valgrind binaries to the gclient solution.""" |
| 672 c.solutions[0].custom_deps['src/third_party/valgrind'] = \ | 644 c.solutions[0].custom_deps['src/third_party/valgrind'] = \ |
| 673 ChromiumGitURL(c, 'chromium', 'deps', 'valgrind', 'binaries') | 645 ChromiumGitURL(c, 'chromium', 'deps', 'valgrind', 'binaries') |
| 674 | 646 |
| 675 @config_ctx(includes=['chromium']) | 647 @config_ctx(includes=['chromium']) |
| 676 def chromedriver(c): | 648 def chromedriver(c): |
| 677 """Add Selenium Java tests to the gclient solution.""" | 649 """Add Selenium Java tests to the gclient solution.""" |
| 678 c.solutions[0].custom_deps[ | 650 c.solutions[0].custom_deps[ |
| 679 'src/chrome/test/chromedriver/third_party/java_tests'] = ( | 651 'src/chrome/test/chromedriver/third_party/java_tests'] = ( |
| 680 ChromiumGitURL(c, 'chromium', 'deps', 'webdriver')) | 652 ChromiumGitURL(c, 'chromium', 'deps', 'webdriver')) |
| OLD | NEW |