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