| 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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) |
| OLD | NEW |