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

Unified Diff: scripts/slave/recipe_modules/ios/api.py

Issue 957493002: Add analyze steps to iOS try bot builds which use ninja (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « scripts/slave/recipe_modules/ios/__init__.py ('k') | scripts/slave/recipes/ios/try.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/recipe_modules/ios/api.py
diff --git a/scripts/slave/recipe_modules/ios/api.py b/scripts/slave/recipe_modules/ios/api.py
index 6a4825e77f65182471ccd5c0b1eb5d036fcf4b56..deeb5c5b6d0c629170f60e2fe9de0857ac28c1e9 100644
--- a/scripts/slave/recipe_modules/ios/api.py
+++ b/scripts/slave/recipe_modules/ios/api.py
@@ -2,6 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import copy
+
from slave import recipe_api
@@ -122,7 +124,11 @@ class iOSApi(recipe_api.RecipeApi):
'--version', self.__config['xcode version'],
], step_test_data=lambda: self.m.json.test_api.output({}))
- def build(self, official=False):
+ self.m.chromium.make_config().gyp_env.GYP_DEFINES = copy.deepcopy(
Paweł Hajdan Jr. 2015/02/27 08:08:13 Could you replace "make_config()" with "c"? We use
smut 2015/02/27 19:09:06 Okay, I figured out the actual correct way to do t
+ self.__config['GYP_DEFINES']
+ )
+
+ def build(self):
"""Builds from this bot's build config."""
assert self.__config is not None
@@ -171,6 +177,10 @@ class iOSApi(recipe_api.RecipeApi):
'<br />GYP_DEFINES:<br />%s' % '<br />'.join(gyp_defines)
)
+ if self.compiler == 'ninja' and self.m.tryserver.is_tryserver:
+ tests = [test['app'] for test in self.__config['tests']]
+ self.m.chromium_tests.analyze(tests, tests, 'trybot_analyze_config.json')
+
self.m.step('compile', cmd, cwd=cwd)
def test(self, *args):
« no previous file with comments | « scripts/slave/recipe_modules/ios/__init__.py ('k') | scripts/slave/recipes/ios/try.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698