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

Side by Side Diff: tools/bots/android.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, 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
(Empty)
1 #!/usr/bin/python
2
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6
7 """
8 Android buildbot steps.
9 """
10
11 import re
12 import sys
13
14 import bot
15
16 ANDROID_BUILDER = r'vm-android-(linux|mac|win)'
17
18 def AndroidConfig(name, is_buildbot):
19 """Returns info for the current buildbot based on the name of the builder.
20
21 Currently, this is just:
22 - mode: always "release" (for now)
23 - system: "linux", "mac", or "win"
24 """
25 android_pattern = re.match(ANDROID_BUILDER, name)
26 if not android_pattern:
27 return None
28
29 system = android_pattern.group(1)
30 if system == 'win': system = 'windows'
31
32 return bot.BuildInfo('none', 'vm', 'release', system, checked=True)
33
34
35 def AndroidSteps(build_info):
36 # Here's where we'll run tests.
Bob Nystrom 2012/10/25 00:49:16 Make this a TODO comment.
Emily Fortuna 2012/10/25 01:33:34 Done.
37 #bot.RunTest('android', build_info, ['android'])
38 pass
39
40 def BuildAndroid(mode, system):
41 """
42 Builds the android target.
43
44 - mode: either 'debug' or 'release'
45 - system: the host system where we're building. Either 'linux', 'mac', or
46 'win7'.
47 """
48 with bot.BuildStep('Build Android'):
49 args = [sys.executable, './tools/build.py', '--mode=' + mode,
50 '--os=android dart']
Bob Nystrom 2012/10/25 00:49:16 How about we add OS to BuildInfo and then have the
gram 2012/10/25 00:51:36 The target 'dart' here is going to change so we pr
Emily Fortuna 2012/10/25 01:33:34 @Bob, the difference is that the one in bot.py is
Bob Nystrom 2012/10/25 16:12:16 Ah, that makes sense. I didn't notice the target w
Emily Fortuna 2012/10/25 18:19:38 @Bob Apparently not (?) (Graham feel free to corre
51 print 'Building Android: %s' % (' '.join(args))
52 bot.RunProcess(args)
53
54 if __name__ == '__main__':
55 bot.RunBot(AndroidConfig, AndroidSteps, build_step=BuildAndroid)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698