OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 import optparse | 6 import optparse |
7 import os | 7 import os |
8 import sys | 8 import sys |
9 import tarfile | 9 import tarfile |
10 | 10 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 buildbot_common.BuildStep(build_prefix + 'Setup New SDK') | 49 buildbot_common.BuildStep(build_prefix + 'Setup New SDK') |
50 sdk_dir = None | 50 sdk_dir = None |
51 sdk_revision = options.sdk_revision | 51 sdk_revision = options.sdk_revision |
52 sdk_url = options.sdk_url | 52 sdk_url = options.sdk_url |
53 if not sdk_url: | 53 if not sdk_url: |
54 if not sdk_revision: | 54 if not sdk_revision: |
55 assert buildbot_revision | 55 assert buildbot_revision |
56 sdk_revision = buildbot_revision.split(':')[0] | 56 sdk_revision = buildbot_revision.split(':')[0] |
57 sdk_url = 'gs://nativeclient-mirror/nacl/nacl_sdk/'\ | 57 sdk_url = 'gs://nativeclient-mirror/nacl/nacl_sdk/'\ |
58 'trunk.%s/naclsdk_linux.bz2' % sdk_revision | 58 'trunk.%s/naclsdk_linux.tar.bz2' % sdk_revision |
59 | 59 |
60 sdk_url = sdk_url.replace('https://commondatastorage.googleapis.com/', | 60 sdk_url = sdk_url.replace('https://commondatastorage.googleapis.com/', |
61 'gs://') | 61 'gs://') |
62 | 62 |
63 sdk_file = sdk_url.split('/')[-1] | 63 sdk_file = sdk_url.split('/')[-1] |
64 | 64 |
65 buildbot_common.Run([buildbot_common.GetGsutil(), 'cp', sdk_url, sdk_file], | 65 buildbot_common.Run([buildbot_common.GetGsutil(), 'cp', sdk_url, sdk_file], |
66 cwd=MONO_BUILD_DIR) | 66 cwd=MONO_BUILD_DIR) |
67 tar_file = None | 67 tar_file = None |
68 try: | 68 try: |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 | 113 |
114 buildbot_common.BuildStep(build_prefix + 'Test Mono') | 114 buildbot_common.BuildStep(build_prefix + 'Test Mono') |
115 buildbot_common.Run(['make', 'check', '-j8'], | 115 buildbot_common.Run(['make', 'check', '-j8'], |
116 cwd=os.path.join(SDK_BUILD_DIR, arch_to_output_folder[options.arch])) | 116 cwd=os.path.join(SDK_BUILD_DIR, arch_to_output_folder[options.arch])) |
117 | 117 |
118 return 0 | 118 return 0 |
119 | 119 |
120 | 120 |
121 if __name__ == '__main__': | 121 if __name__ == '__main__': |
122 sys.exit(main(sys.argv)) | 122 sys.exit(main(sys.argv)) |
OLD | NEW |