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 both build and try bots | 6 """Entry point for both build and try bots |
7 | 7 |
8 This script is invoked from XXX, usually without arguments | 8 This script is invoked from XXX, usually without arguments |
9 to package an SDK. It automatically determines whether | 9 to package an SDK. It automatically determines whether |
10 this SDK is for mac, win, linux. | 10 this SDK is for mac, win, linux. |
11 | 11 |
12 The script inspects the following environment variables: | 12 The script inspects the following environment variables: |
13 | 13 |
14 BUILDBOT_BUILDERNAME to determine whether the script is run locally | 14 BUILDBOT_BUILDERNAME to determine whether the script is run locally |
15 and whether it should upload an SDK to file storage (GSTORE) | 15 and whether it should upload an SDK to file storage (GSTORE) |
16 """ | 16 """ |
17 | 17 |
| 18 # pylint: disable=W0621 |
18 | 19 |
19 # std python includes | 20 # std python includes |
20 import copy | 21 import copy |
21 import datetime | 22 import datetime |
22 import generate_make | 23 import generate_make |
23 import optparse | 24 import optparse |
24 import os | 25 import os |
25 import platform | 26 import platform |
26 import subprocess | 27 import subprocess |
27 import sys | 28 import sys |
(...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
831 # Archive on non-trybots. | 832 # Archive on non-trybots. |
832 if options.archive or buildbot_common.IsSDKBuilder(): | 833 if options.archive or buildbot_common.IsSDKBuilder(): |
833 BuildStepArchiveBundle(pepper_ver, clnumber, tarfile) | 834 BuildStepArchiveBundle(pepper_ver, clnumber, tarfile) |
834 BuildStepArchiveSDKTools() | 835 BuildStepArchiveSDKTools() |
835 | 836 |
836 return 0 | 837 return 0 |
837 | 838 |
838 | 839 |
839 if __name__ == '__main__': | 840 if __name__ == '__main__': |
840 sys.exit(main(sys.argv)) | 841 sys.exit(main(sys.argv)) |
OLD | NEW |