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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 @config_ctx(includes=['chromium_bare']) | 162 @config_ctx(includes=['chromium_bare']) |
163 def chromium_empty(c): | 163 def chromium_empty(c): |
164 c.solutions[0].deps_file = '' # pragma: no cover | 164 c.solutions[0].deps_file = '' # pragma: no cover |
165 | 165 |
166 @config_ctx(includes=['chromium_bare']) | 166 @config_ctx(includes=['chromium_bare']) |
167 def chromium(c): | 167 def chromium(c): |
168 s = c.solutions[0] | 168 s = c.solutions[0] |
169 s.custom_deps = mirror_only(c, {}) | 169 s.custom_deps = mirror_only(c, {}) |
170 | 170 |
171 @config_ctx(includes=['chromium']) | 171 @config_ctx(includes=['chromium']) |
| 172 def chromium_no_git_cache(c): |
| 173 c.cache_dir = None |
| 174 |
| 175 @config_ctx(includes=['chromium']) |
172 def chromium_lkcr(c): | 176 def chromium_lkcr(c): |
173 # TODO(phajdan.jr): Add git hashes for LKCR crbug.com/349277. | 177 # TODO(phajdan.jr): Add git hashes for LKCR crbug.com/349277. |
174 if c.GIT_MODE: | 178 if c.GIT_MODE: |
175 raise BadConf('Git has problems with safesync_url and LKCR, ' | 179 raise BadConf('Git has problems with safesync_url and LKCR, ' |
176 'crbug.com/349277 crbug.com/109191') # pragma: no cover | 180 'crbug.com/349277 crbug.com/109191') # pragma: no cover |
177 s = c.solutions[0] | 181 s = c.solutions[0] |
178 s.safesync_url = 'https://build.chromium.org/p/chromium/lkcr-status/lkgr' | 182 s.safesync_url = 'https://build.chromium.org/p/chromium/lkcr-status/lkgr' |
179 # TODO(hinoka): Once lkcr exists and is a tag, it should just be lkcr | 183 # TODO(hinoka): Once lkcr exists and is a tag, it should just be lkcr |
180 # rather than origin/lkcr. | 184 # rather than origin/lkcr. |
181 s.revision = 'origin/lkcr' | 185 s.revision = 'origin/lkcr' |
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
642 soln = c.solutions.add() | 646 soln = c.solutions.add() |
643 soln.name = 'gerrit-test-cq-normal' | 647 soln.name = 'gerrit-test-cq-normal' |
644 soln.url = 'https://chromium.googlesource.com/playground/gerrit-cq/normal.git' | 648 soln.url = 'https://chromium.googlesource.com/playground/gerrit-cq/normal.git' |
645 | 649 |
646 # TODO(phajdan.jr): Move to proper repo and add coverage. | 650 # TODO(phajdan.jr): Move to proper repo and add coverage. |
647 @config_ctx() | 651 @config_ctx() |
648 def valgrind(c): # pragma: no cover | 652 def valgrind(c): # pragma: no cover |
649 """Add Valgrind binaries to the gclient solution.""" | 653 """Add Valgrind binaries to the gclient solution.""" |
650 c.solutions[0].custom_deps['src/third_party/valgrind'] = \ | 654 c.solutions[0].custom_deps['src/third_party/valgrind'] = \ |
651 ChromiumGitURL(c, 'chromium', 'deps', 'valgrind', 'binaries') | 655 ChromiumGitURL(c, 'chromium', 'deps', 'valgrind', 'binaries') |
OLD | NEW |