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

Side by Side Diff: tools/bots/cross-vm.py

Issue 16168004: Remove hack for codesourcery crosscompiler since we've precise VMs now (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/build.py » ('j') | 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 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
3 # for details. All rights reserved. Use of this source code is governed by a 3 # for details. All rights reserved. Use of this source code is governed by a
4 # BSD-style license that can be found in the LICENSE file. 4 # BSD-style license that can be found in the LICENSE file.
5 5
6 import os 6 import os
7 import re 7 import re
8 import shutil 8 import shutil
9 import sys 9 import sys
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 (recording, recording_out) = record_names('tests', arch, mode) 42 (recording, recording_out) = record_names('tests', arch, mode)
43 (checked_recording, checked_recording_out) = record_names( 43 (checked_recording, checked_recording_out) = record_names(
44 'checked_tests', arch, mode) 44 'checked_tests', arch, mode)
45 45
46 temporary_files = [tarball, recording, recording_out, checked_recording, 46 temporary_files = [tarball, recording, recording_out, checked_recording,
47 checked_recording_out] 47 checked_recording_out]
48 bot.Clobber() 48 bot.Clobber()
49 try: 49 try:
50 num_run = int(os.environ['BUILDBOT_ANNOTATED_STEPS_RUN']) 50 num_run = int(os.environ['BUILDBOT_ANNOTATED_STEPS_RUN'])
51 if num_run == 1: 51 if num_run == 1:
52 # FIXME(kustermann/ricow): Remove this hack as soon as our bots are
53 # running on precise (i.e. then we can install the normal crosscompiler)
54 os.environ['TARGET_TOOLCHAIN_PREFIX'] = ('/home/chrome-bot/codesourcery'
55 '/bin/arm-none-linux-gnueabi')
56 with bot.BuildStep('Build %s %s' % (arch, mode)): 52 with bot.BuildStep('Build %s %s' % (arch, mode)):
57 args = [sys.executable, build_py, 53 args = [sys.executable, build_py,
58 '-m%s' % mode, '--arch=%s' % arch, 'runtime'] 54 '-m%s' % mode, '--arch=%s' % arch, 'runtime']
59 55
60 run(args) 56 run(args)
61 with bot.BuildStep('Create build tarball'): 57 with bot.BuildStep('Create build tarball'):
62 run(['tar', '-cjf', tarball, '--exclude=**/obj', 58 run(['tar', '-cjf', tarball, '--exclude=**/obj',
63 '--exclude=**/obj.host', '--exclude=**/obj.target', 59 '--exclude=**/obj.host', '--exclude=**/obj.target',
64 '--exclude=**/*analyzer*', '--exclude=**/*IA32', 'out/']) 60 '--exclude=**/*analyzer*', '--exclude=**/*IA32', 'out/'])
65 61
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 mode = target_vm_pattern_match.group(2) 149 mode = target_vm_pattern_match.group(2)
154 target_builder(arch, mode) 150 target_builder(arch, mode)
155 else: 151 else:
156 raise Exception("Unknown builder name %s" % name) 152 raise Exception("Unknown builder name %s" % name)
157 153
158 if __name__ == '__main__': 154 if __name__ == '__main__':
159 try: 155 try:
160 sys.exit(main()) 156 sys.exit(main())
161 except OSError as e: 157 except OSError as e:
162 sys.exit(e.errno) 158 sys.exit(e.errno)
OLDNEW
« no previous file with comments | « no previous file | tools/build.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698