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

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

Issue 2282913002: Delete all references to GIT_MODE=True from build (Closed)
Patch Set: 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
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 copy 5 import copy
6 6
7 from recipe_engine import recipe_api 7 from recipe_engine import recipe_api
8 8
9 9
10 class iOSApi(recipe_api.RecipeApi): 10 class iOSApi(recipe_api.RecipeApi):
(...skipping 22 matching lines...) Expand all
33 step_result.presentation.step_text = '<br />OS X %s, Xcode %s (%s)' % ( 33 step_result.presentation.step_text = '<br />OS X %s, Xcode %s (%s)' % (
34 step_result.json.output['Mac OS X Version'], 34 step_result.json.output['Mac OS X Version'],
35 step_result.json.output['Xcode Version'], 35 step_result.json.output['Xcode Version'],
36 step_result.json.output['Xcode Build Version'], 36 step_result.json.output['Xcode Build Version'],
37 ) 37 )
38 return step_result 38 return step_result
39 39
40 def checkout(self, **kwargs): 40 def checkout(self, **kwargs):
41 """Checks out Chromium.""" 41 """Checks out Chromium."""
42 kwargs.setdefault('force', True) 42 kwargs.setdefault('force', True)
43 self.m.gclient.set_config('ios', GIT_MODE=True) 43 self.m.gclient.set_config('ios')
44 44
45 checkout_dir = self.m.chromium_checkout.get_checkout_dir({}) 45 checkout_dir = self.m.chromium_checkout.get_checkout_dir({})
46 if checkout_dir: 46 if checkout_dir:
47 kwargs.setdefault('cwd', checkout_dir) 47 kwargs.setdefault('cwd', checkout_dir)
48 48
49 return self.m.bot_update.ensure_checkout(**kwargs) 49 return self.m.bot_update.ensure_checkout(**kwargs)
50 50
51 @property 51 @property
52 def configuration(self): 52 def configuration(self):
53 assert self.__config is not None 53 assert self.__config is not None
(...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after
758 @property 758 @property
759 def most_recent_iossim(self): 759 def most_recent_iossim(self):
760 """Returns the path to the most recently compiled iossim.""" 760 """Returns the path to the most recently compiled iossim."""
761 platform = { 761 platform = {
762 'device': 'iphoneos', 762 'device': 'iphoneos',
763 'simulator': 'iphonesimulator', 763 'simulator': 'iphonesimulator',
764 }[self.platform] 764 }[self.platform]
765 765
766 return self.m.path.join( 766 return self.m.path.join(
767 'src', 'out', '%s-%s' % (self.configuration, platform), 'iossim') 767 'src', 'out', '%s-%s' % (self.configuration, platform), 'iossim')
OLDNEW
« no previous file with comments | « scripts/slave/recipe_modules/emulator/example.py ('k') | scripts/slave/recipe_modules/legion/example.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698