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 """Entry point for the AddIn build bot. | 6 """Entry point for the AddIn build bot. |
7 | 7 |
8 Perform build steps and output results using the buildbot | 8 Perform build steps and output results using the buildbot |
9 annootator syntax | 9 annootator syntax |
10 """ | 10 """ |
11 | 11 |
12 import os | 12 import os |
13 import sys | 13 import sys |
14 import re | 14 import re |
15 import shutil | 15 import shutil |
16 import subprocess | 16 import subprocess |
17 import urllib2 | 17 import urllib2 |
18 import zipfile | 18 import zipfile |
19 | 19 |
20 GSURL = 'https://commondatastorage.googleapis.com' | 20 GSURL = 'https://commondatastorage.googleapis.com' |
21 GSPATH = 'nativeclient-mirror/nacl/nacl_sdk/sdk' | 21 GSPATH = 'nativeclient-mirror/nacl/nacl_sdk/sdk' |
22 SDKROOT = os.path.join('..', '..', 'out', 'sdk') | 22 SDKROOT = os.path.join('..', '..', 'out', 'sdk') |
23 SDK_VERSIONS = ['pepper_31', 'pepper32', 'pepper_canary'] | 23 SDK_VERSIONS = ['pepper_31', 'pepper_32', 'pepper_canary'] |
24 | 24 |
25 | 25 |
26 def Log(msg): | 26 def Log(msg): |
27 sys.stdout.write(msg + '\n') | 27 sys.stdout.write(msg + '\n') |
28 sys.stdout.flush() | 28 sys.stdout.flush() |
29 | 29 |
30 | 30 |
31 def RunCommand(cmd, env=None): | 31 def RunCommand(cmd, env=None): |
32 Log("Running: %s" % cmd) | 32 Log("Running: %s" % cmd) |
33 Log("CWD: %s" % os.getcwd()) | 33 Log("CWD: %s" % os.getcwd()) |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 del os.environ['AWS_CREDENTIAL_FILE'] | 190 del os.environ['AWS_CREDENTIAL_FILE'] |
191 StepBuild() | 191 StepBuild() |
192 StepInstall() | 192 StepInstall() |
193 StepInstallSDK() | 193 StepInstallSDK() |
194 StepTest() | 194 StepTest() |
195 StepArchive() | 195 StepArchive() |
196 | 196 |
197 | 197 |
198 if __name__ == '__main__': | 198 if __name__ == '__main__': |
199 main() | 199 main() |
OLD | NEW |