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

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

Issue 12674025: Add java to PATH on windows bots and run ia32 editor tests instead of x64 on windows (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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 | « client/tools/buildbot_annotated_steps.py ('k') | 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 # 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 sys 7 import sys
8 8
9 import bot 9 import bot
10 10
(...skipping 17 matching lines...) Expand all
28 elif sys.platform == 'linux2': 28 elif sys.platform == 'linux2':
29 return os.path.join(linux_path, 'DartEditor') 29 return os.path.join(linux_path, 'DartEditor')
30 else: 30 else:
31 raise Exception('Unknown platform %s' % sys.platform) 31 raise Exception('Unknown platform %s' % sys.platform)
32 32
33 33
34 def main(): 34 def main():
35 build_py = os.path.join('tools', 'build.py') 35 build_py = os.path.join('tools', 'build.py')
36 architectures = ['ia32', 'x64'] 36 architectures = ['ia32', 'x64']
37 test_architectures = ['x64'] 37 test_architectures = ['x64']
38 if sys.platform == 'win32':
39 # Our windows bots pull in only a 32 bit JVM.
40 test_architectures = ['ia32']
38 41
39 for arch in architectures: 42 for arch in architectures:
40 with bot.BuildStep('Build Editor %s' % arch): 43 with bot.BuildStep('Build Editor %s' % arch):
41 args = [sys.executable, build_py, 44 args = [sys.executable, build_py,
42 '-mrelease', '--arch=%s' % arch, 'editor'] 45 '-mrelease', '--arch=%s' % arch, 'editor']
43 print 'Running: %s' % (' '.join(args)) 46 print 'Running: %s' % (' '.join(args))
44 sys.stdout.flush() 47 sys.stdout.flush()
45 bot.RunProcess(args) 48 bot.RunProcess(args)
46 49
47 for arch in test_architectures: 50 for arch in test_architectures:
48 editor_executable = GetEditorExecutable('Release', arch) 51 editor_executable = GetEditorExecutable('Release', arch)
49 with bot.BuildStep('Test Editor %s' % arch): 52 with bot.BuildStep('Test Editor %s' % arch):
50 args = [editor_executable, '--test', '--auto-exit'] 53 args = [editor_executable, '--test', '--auto-exit']
51 print 'Running: %s' % (' '.join(args)) 54 print 'Running: %s' % (' '.join(args))
52 sys.stdout.flush() 55 sys.stdout.flush()
53 bot.RunProcess(args) 56 bot.RunProcess(args)
54 return 0 57 return 0
55 58
56 if __name__ == '__main__': 59 if __name__ == '__main__':
57 try: 60 try:
58 sys.exit(main()) 61 sys.exit(main())
59 except OSError as e: 62 except OSError as e:
60 sys.exit(e.errno) 63 sys.exit(e.errno)
OLDNEW
« no previous file with comments | « client/tools/buildbot_annotated_steps.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698