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

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: Addressed comments and refactored Created 7 years, 1 month 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 spawn_dbus=spawn_dbus, 146 spawn_dbus=spawn_dbus,
147 env=env) 147 env=env)
148 148
149 def runhooks(self, **kwargs): 149 def runhooks(self, **kwargs):
150 """Run the build-configuration hooks for chromium.""" 150 """Run the build-configuration hooks for chromium."""
151 env = kwargs.get('env', {}) 151 env = kwargs.get('env', {})
152 env.update(self.c.gyp_env.as_jsonish()) 152 env.update(self.c.gyp_env.as_jsonish())
153 kwargs['env'] = env 153 kwargs['env'] = env
154 return self.m.gclient.runhooks(**kwargs) 154 return self.m.gclient.runhooks(**kwargs)
155 155
156 def cleanup_temp(self):
157 return self.m.python(
158 'cleanup_temp',
159 self.m.path.build('scripts', 'slave', 'cleanup_temp.py'))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698