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', 'pepper_32', 'pepper_canary'] | 23 SDK_VERSIONS = ['pepper_33', 'pepper_34', '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, check_return_code=True): | 31 def RunCommand(cmd, env=None, check_return_code=True): |
32 Log("Running: %s" % cmd) | 32 Log("Running: %s" % cmd) |
33 Log("CWD: %s" % os.getcwd()) | 33 Log("CWD: %s" % os.getcwd()) |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 | 206 |
207 StepBuild(revision) | 207 StepBuild(revision) |
208 StepInstall() | 208 StepInstall() |
209 StepInstallSDK() | 209 StepInstallSDK() |
210 StepTest() | 210 StepTest() |
211 StepArchive(revision) | 211 StepArchive(revision) |
212 | 212 |
213 | 213 |
214 if __name__ == '__main__': | 214 if __name__ == '__main__': |
215 main() | 215 main() |
OLD | NEW |