Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: recipe_modules/gclient/example.py

Issue 2286793003: Remove all references to GIT_MODE from depot_tools (Closed)
Patch Set: Slightly cleaner Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « recipe_modules/gclient/config.py ('k') | recipe_modules/gclient/test_api.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 DEPS = [ 5 DEPS = [
6 'gclient', 6 'gclient',
7 'recipe_engine/path', 7 'recipe_engine/path',
8 'recipe_engine/properties', 8 'recipe_engine/properties',
9 ] 9 ]
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 'webports', 54 'webports',
55 'webrtc_test_resources', 55 'webrtc_test_resources',
56 'with_branch_heads', 56 'with_branch_heads',
57 ] 57 ]
58 58
59 59
60 def RunSteps(api): 60 def RunSteps(api):
61 for config_name in TEST_CONFIGS: 61 for config_name in TEST_CONFIGS:
62 api.gclient.make_config(config_name) 62 api.gclient.make_config(config_name)
63 63
64 src_cfg = api.gclient.make_config(GIT_MODE=True, CACHE_DIR='[ROOT]/git_cache') 64 src_cfg = api.gclient.make_config(CACHE_DIR='[ROOT]/git_cache')
65 soln = src_cfg.solutions.add() 65 soln = src_cfg.solutions.add()
66 soln.name = 'src' 66 soln.name = 'src'
67 soln.url = 'https://chromium.googlesource.com/chromium/src.git' 67 soln.url = 'https://chromium.googlesource.com/chromium/src.git'
68 soln.revision = api.properties.get('revision') 68 soln.revision = api.properties.get('revision')
69 src_cfg.parent_got_revision_mapping['parent_got_revision'] = 'got_revision' 69 src_cfg.parent_got_revision_mapping['parent_got_revision'] = 'got_revision'
70 api.gclient.c = src_cfg 70 api.gclient.c = src_cfg
71 api.gclient.checkout() 71 api.gclient.checkout()
72 72
73 api.gclient.spec_alias = 'WebKit' 73 api.gclient.spec_alias = 'WebKit'
74 bl_cfg = api.gclient.make_config() 74 bl_cfg = api.gclient.make_config()
(...skipping 19 matching lines...) Expand all
94 94
95 assert not api.gclient.is_blink_mode 95 assert not api.gclient.is_blink_mode
96 96
97 97
98 def GenTests(api): 98 def GenTests(api):
99 yield api.test('basic') 99 yield api.test('basic')
100 100
101 yield api.test('revision') + api.properties(revision='abc') 101 yield api.test('revision') + api.properties(revision='abc')
102 102
103 yield api.test('tryserver') + api.properties.tryserver() 103 yield api.test('tryserver') + api.properties.tryserver()
OLDNEW
« no previous file with comments | « recipe_modules/gclient/config.py ('k') | recipe_modules/gclient/test_api.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698