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. |
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
569 | 569 |
570 archive = manifest_util.Archive(manifest_util.GetHostOS()) | 570 archive = manifest_util.Archive(manifest_util.GetHostOS()) |
571 archive.url = archive_url | 571 archive.url = archive_url |
572 archive.size = archive_size | 572 archive.size = archive_size |
573 archive.checksum = archive_sha1 | 573 archive.checksum = archive_sha1 |
574 | 574 |
575 bundle = manifest_util.Bundle('pepper_' + pepper_ver) | 575 bundle = manifest_util.Bundle('pepper_' + pepper_ver) |
576 bundle.revision = int(revision) | 576 bundle.revision = int(revision) |
577 bundle.repath = 'pepper_' + pepper_ver | 577 bundle.repath = 'pepper_' + pepper_ver |
578 bundle.version = int(pepper_ver) | 578 bundle.version = int(pepper_ver) |
579 bundle.description = 'Chrome %s bundle, revision %s' % ( | 579 bundle.description = 'Chrome %s bundle, revision %s' % (pepper_ver, revision) |
580 pepper_ver, revision), | |
581 bundle.stability = 'dev' | 580 bundle.stability = 'dev' |
582 bundle.recommended = 'no' | 581 bundle.recommended = 'no' |
583 bundle.archives = [archive] | 582 bundle.archives = [archive] |
584 return bundle | 583 return bundle |
585 | 584 |
586 | 585 |
587 def BuildStepTestUpdater(platform, pepper_ver, revision, tarfile): | 586 def BuildStepTestUpdater(platform, pepper_ver, revision, tarfile): |
588 tarname = os.path.basename(tarfile) | 587 tarname = os.path.basename(tarfile) |
589 server = None | 588 server = None |
590 try: | 589 try: |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
832 # Archive on non-trybots. | 831 # Archive on non-trybots. |
833 if options.archive or buildbot_common.IsSDKBuilder(): | 832 if options.archive or buildbot_common.IsSDKBuilder(): |
834 BuildStepArchiveBundle(pepper_ver, clnumber, tarfile) | 833 BuildStepArchiveBundle(pepper_ver, clnumber, tarfile) |
835 BuildStepArchiveSDKTools() | 834 BuildStepArchiveSDKTools() |
836 | 835 |
837 return 0 | 836 return 0 |
838 | 837 |
839 | 838 |
840 if __name__ == '__main__': | 839 if __name__ == '__main__': |
841 sys.exit(main(sys.argv)) | 840 sys.exit(main(sys.argv)) |
OLD | NEW |