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

Side by Side Diff: tools/bots/android.py

Issue 11442026: Hack to get the android bot going (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4 # for details. All rights reserved. Use of this source code is governed by a 4 # for details. All rights reserved. Use of this source code is governed by a
5 # BSD-style license that can be found in the LICENSE file. 5 # BSD-style license that can be found in the LICENSE file.
6 6
7 """ 7 """
8 Android buildbot steps. 8 Android buildbot steps.
9 """ 9 """
10 10
11 import os
12 import os.path
11 import re 13 import re
12 import sys 14 import sys
13 15
14 import bot 16 import bot
15 17
16 ANDROID_BUILDER = r'vm-android-(linux|mac|win)' 18 ANDROID_BUILDER = r'vm-android-(linux|mac|win)'
17 19
18 def AndroidConfig(name, is_buildbot): 20 def AndroidConfig(name, is_buildbot):
19 """Returns info for the current buildbot based on the name of the builder. 21 """Returns info for the current buildbot based on the name of the builder.
20 22
(...skipping 17 matching lines...) Expand all
38 pass 40 pass
39 41
40 def BuildAndroid(build_info): 42 def BuildAndroid(build_info):
41 """ 43 """
42 Builds the android target. 44 Builds the android target.
43 45
44 - build_info: the buildInfo object, containing information about what sort of 46 - build_info: the buildInfo object, containing information about what sort of
45 build and test to be run. 47 build and test to be run.
46 """ 48 """
47 with bot.BuildStep('Build Android'): 49 with bot.BuildStep('Build Android'):
50 # TODO(vsm): A temporary hack until we figure out why incremental builds are
51 # broken on Android.
52 if os.path.exists('./out/lastHooksTargetOS.txt'):
53 os.remove('./out/lastHooksTargetOS.txt')
48 targets = ['android_embedder'] 54 targets = ['android_embedder']
49 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode, 55 args = [sys.executable, './tools/build.py', '--mode=' + build_info.mode,
50 '--os=android'] + targets 56 '--os=android'] + targets
51 print 'Building Android: %s' % (' '.join(args)) 57 print 'Building Android: %s' % (' '.join(args))
52 bot.RunProcess(args) 58 bot.RunProcess(args)
53 59
54 if __name__ == '__main__': 60 if __name__ == '__main__':
55 bot.RunBot(AndroidConfig, AndroidSteps, build_step=BuildAndroid) 61 bot.RunBot(AndroidConfig, AndroidSteps, build_step=BuildAndroid)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698