| OLD | NEW |
| 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 sys | 8 import sys |
| 9 | 9 |
| 10 import bot | 10 import bot |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 for arch in architectures: | 119 for arch in architectures: |
| 120 with bot.BuildStep('Build Editor %s' % arch): | 120 with bot.BuildStep('Build Editor %s' % arch): |
| 121 args = [sys.executable, build_py, | 121 args = [sys.executable, build_py, |
| 122 '-mrelease', '--arch=%s' % arch, 'editor', 'create_sdk'] | 122 '-mrelease', '--arch=%s' % arch, 'editor', 'create_sdk'] |
| 123 RunProcess(args) | 123 RunProcess(args) |
| 124 | 124 |
| 125 for arch in test_architectures: | 125 for arch in test_architectures: |
| 126 editor_executable = GetEditorExecutable('Release', arch) | 126 editor_executable = GetEditorExecutable('Release', arch) |
| 127 with bot.BuildStep('Test Editor %s' % arch): | 127 with bot.BuildStep('Test Editor %s' % arch): |
| 128 with utils.TempDir('eclipse') as temp_dir: | 128 with utils.TempDir('eclipse') as temp_dir: |
| 129 args = [editor_executable, '-consoleLog', '--test', '--auto-exit', | 129 args = [editor_executable, '--test', '--auto-exit', '-data', temp_dir] |
| 130 '-data', temp_dir] | |
| 131 RunProcess(args) | 130 RunProcess(args) |
| 132 | 131 |
| 133 # TODO: Permissions need to be clarified | 132 # TODO: Permissions need to be clarified |
| 134 for arch in test_architectures: | 133 for arch in test_architectures: |
| 135 with bot.BuildStep('Build Installer %s' % arch): | 134 with bot.BuildStep('Build Installer %s' % arch): |
| 136 if sys.platform == 'darwin': | 135 if sys.platform == 'darwin': |
| 137 CreateAndUploadMacInstaller(arch) | 136 CreateAndUploadMacInstaller(arch) |
| 138 else: | 137 else: |
| 139 print ("We currently don't build installers for sys.platform=%s" | 138 print ("We currently don't build installers for sys.platform=%s" |
| 140 % sys.platform) | 139 % sys.platform) |
| 141 return 0 | 140 return 0 |
| 142 | 141 |
| 143 if __name__ == '__main__': | 142 if __name__ == '__main__': |
| 144 try: | 143 try: |
| 145 sys.exit(main()) | 144 sys.exit(main()) |
| 146 except OSError as e: | 145 except OSError as e: |
| 147 sys.exit(e.errno) | 146 sys.exit(e.errno) |
| OLD | NEW |