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

Unified Diff: tools/bots/bot.py

Issue 11264019: Set up Android build config. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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
« tools/bots/android.py ('K') | « tools/bots/android.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/bots/bot.py
===================================================================
--- tools/bots/bot.py (revision 14040)
+++ tools/bots/bot.py (working copy)
@@ -90,8 +90,22 @@
return True
-def RunBot(parse_name, custom_steps):
+def BuildSDK(build_info):
"""
+ Builds the SDK.
+
+ - build_info: the buildInfo object, containing information about what sort of
+ build and test to be run.
+ """
+ with BuildStep('Build SDK'):
+ args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode,
+ 'create_sdk']
+ print 'Building SDK: %s' % (' '.join(args))
+ RunProcess(args)
+
+
+def RunBot(parse_name, custom_steps, build_step=BuildSDK):
+ """
The main function for running a buildbot.
A buildbot script should invoke this once. The parse_name function will be
@@ -122,7 +136,7 @@
try:
Clobber(build_info.mode)
- BuildSDK(build_info.mode, build_info.system)
+ build_step(build_info)
custom_steps(build_info)
except OSError as e:
@@ -172,19 +186,6 @@
RunProcess(cmd)
-def BuildSDK(mode, system):
- """
- Builds the SDK.
-
- - mode: either 'debug' or 'release'
- - system: either 'linux', 'mac', or 'win7'
- """
- with BuildStep('Build SDK'):
- args = [sys.executable, './tools/build.py', '--mode=' + mode, 'create_sdk']
- print 'Building SDK: %s' % (' '.join(args))
- RunProcess(args)
-
-
def RunTest(name, build_info, targets, flags=None):
"""
Runs test.py with the given settings.
« tools/bots/android.py ('K') | « tools/bots/android.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698