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

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

Issue 18807006: Trying to resurrect the linux editor FYI bot. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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 | 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 re 7 import re
8 import shutil 8 import shutil
9 import sys 9 import sys
10 import tempfile 10 import tempfile
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 for arch in architectures: 127 for arch in architectures:
128 with bot.BuildStep('Build Editor %s' % arch): 128 with bot.BuildStep('Build Editor %s' % arch):
129 args = [sys.executable, build_py, 129 args = [sys.executable, build_py,
130 '-mrelease', '--arch=%s' % arch, 'editor', 'create_sdk'] 130 '-mrelease', '--arch=%s' % arch, 'editor', 'create_sdk']
131 RunProcess(args) 131 RunProcess(args)
132 132
133 for arch in test_architectures: 133 for arch in test_architectures:
134 editor_executable = GetEditorExecutable('Release', arch) 134 editor_executable = GetEditorExecutable('Release', arch)
135 with bot.BuildStep('Test Editor %s' % arch): 135 with bot.BuildStep('Test Editor %s' % arch):
136 with TempDir() as temp_dir: 136 with TempDir() as temp_dir:
137 args = [editor_executable, '--test', '--auto-exit', '-data', temp_dir] 137 args = [editor_executable, '-noSplash', '--test', '--auto-exit',
138 '-data', temp_dir]
138 RunProcess(args) 139 RunProcess(args)
139 140
140 # TODO: Permissions need to be clarified 141 # TODO: Permissions need to be clarified
141 for arch in test_architectures: 142 for arch in test_architectures:
142 with bot.BuildStep('Build Installer %s' % arch): 143 with bot.BuildStep('Build Installer %s' % arch):
143 if sys.platform == 'darwin': 144 if sys.platform == 'darwin':
144 CreateAndUploadMacInstaller(arch) 145 CreateAndUploadMacInstaller(arch)
145 else: 146 else:
146 print ("We currently don't build installers for sys.platform=%s" 147 print ("We currently don't build installers for sys.platform=%s"
147 % sys.platform) 148 % sys.platform)
148 return 0 149 return 0
149 150
150 if __name__ == '__main__': 151 if __name__ == '__main__':
151 try: 152 try:
152 sys.exit(main()) 153 sys.exit(main())
153 except OSError as e: 154 except OSError as e:
154 sys.exit(e.errno) 155 sys.exit(e.errno)
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