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

Side by Side Diff: scripts/slave/recipe_modules/chromium/api.py

Issue 75163006: WebRTC Android APK trybot recipe (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Rebased, removed video_engine_tests Created 7 years 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 | Annotate | Revision Log
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 from slave import recipe_api 5 from slave import recipe_api
6 6
7 class ChromiumApi(recipe_api.RecipeApi): 7 class ChromiumApi(recipe_api.RecipeApi):
8 def get_config_defaults(self): 8 def get_config_defaults(self):
9 return { 9 return {
10 'HOST_PLATFORM': self.m.platform.name, 10 'HOST_PLATFORM': self.m.platform.name,
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 spawn_dbus=spawn_dbus, 154 spawn_dbus=spawn_dbus,
155 env=env) 155 env=env)
156 156
157 def runhooks(self, **kwargs): 157 def runhooks(self, **kwargs):
158 """Run the build-configuration hooks for chromium.""" 158 """Run the build-configuration hooks for chromium."""
159 env = kwargs.get('env', {}) 159 env = kwargs.get('env', {})
160 env.update(self.c.gyp_env.as_jsonish()) 160 env.update(self.c.gyp_env.as_jsonish())
161 kwargs['env'] = env 161 kwargs['env'] = env
162 return self.m.gclient.runhooks(**kwargs) 162 return self.m.gclient.runhooks(**kwargs)
163 163
164 def cleanup_temp(self):
165 return self.m.python(
166 'cleanup_temp',
167 self.m.path.build('scripts', 'slave', 'cleanup_temp.py'))
168
164 def checkdeps(self, suffix=None, **kwargs): 169 def checkdeps(self, suffix=None, **kwargs):
165 name = 'checkdeps' 170 name = 'checkdeps'
166 if suffix: 171 if suffix:
167 name += ' (%s)' % suffix 172 name += ' (%s)' % suffix
168 return self.m.python( 173 return self.m.python(
169 name, 174 name,
170 self.m.path.checkout('tools', 'checkdeps', 'checkdeps.py'), 175 self.m.path.checkout('tools', 'checkdeps', 'checkdeps.py'),
171 args=['--json', self.m.json.output()], 176 args=['--json', self.m.json.output()],
172 **kwargs) 177 **kwargs)
173 178
174 def deps2git(self, suffix=None, **kwargs): 179 def deps2git(self, suffix=None, **kwargs):
175 name = 'deps2git' 180 name = 'deps2git'
176 if suffix: 181 if suffix:
177 name += ' (%s)' % suffix 182 name += ' (%s)' % suffix
178 return self.m.python( 183 return self.m.python(
179 name, 184 name,
180 self.m.path.checkout('tools', 'deps2git', 'deps2git.py'), 185 self.m.path.checkout('tools', 'deps2git', 'deps2git.py'),
181 args=['-d', self.m.path.checkout('DEPS'), 186 args=['-d', self.m.path.checkout('DEPS'),
182 '-o', self.m.path.checkout('.DEPS.git'), 187 '-o', self.m.path.checkout('.DEPS.git'),
183 '--verify', 188 '--verify',
184 '--json', self.m.json.output()], 189 '--json', self.m.json.output()],
185 **kwargs) 190 **kwargs)
186 191
187 def deps2submodules(self, **kwargs): 192 def deps2submodules(self, **kwargs):
188 return self.m.python( 193 return self.m.python(
189 'deps2submodules', 194 'deps2submodules',
190 self.m.path.checkout('tools', 'deps2git', 'deps2submodules.py'), 195 self.m.path.checkout('tools', 'deps2git', 'deps2submodules.py'),
191 args=['--gitless', self.m.path.checkout('.DEPS.git')], 196 args=['--gitless', self.m.path.checkout('.DEPS.git')],
192 **kwargs) 197 **kwargs)
OLDNEW
« no previous file with comments | « scripts/slave/recipe_modules/base_android/api.py ('k') | scripts/slave/recipe_modules/chromium/config.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698