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 769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
780 manifest_name = 'naclsdk_manifest2.json' | 780 manifest_name = 'naclsdk_manifest2.json' |
781 with open(os.path.join(SERVER_DIR, manifest_name), 'wb') as \ | 781 with open(os.path.join(SERVER_DIR, manifest_name), 'wb') as \ |
782 manifest_stream: | 782 manifest_stream: |
783 manifest_stream.write(manifest.GetDataAsString()) | 783 manifest_stream.write(manifest.GetDataAsString()) |
784 | 784 |
785 # use newly built sdk updater to pull this bundle | 785 # use newly built sdk updater to pull this bundle |
786 buildbot_common.BuildStep('Update from local server') | 786 buildbot_common.BuildStep('Update from local server') |
787 naclsdk_sh = os.path.join(OUT_DIR, 'nacl_sdk', 'naclsdk') | 787 naclsdk_sh = os.path.join(OUT_DIR, 'nacl_sdk', 'naclsdk') |
788 if platform == 'win': | 788 if platform == 'win': |
789 naclsdk_sh += '.bat' | 789 naclsdk_sh += '.bat' |
790 buildbot_common.Run([naclsdk_sh, '-U', | 790 buildbot_common.Run([naclsdk_sh, 'update', 'pepper_' + pepper_ver, |
791 server.GetURL(manifest_name), 'update', 'pepper_' + pepper_ver]) | 791 '-U', server.GetURL(manifest_name), '-v']) |
792 | 792 |
793 # Return the new pepper directory as the one inside the downloaded SDK. | 793 # Return the new pepper directory as the one inside the downloaded SDK. |
794 return os.path.join(OUT_DIR, 'nacl_sdk', 'pepper_' + pepper_ver) | 794 return os.path.join(OUT_DIR, 'nacl_sdk', 'pepper_' + pepper_ver) |
795 | 795 |
796 # kill server | 796 # kill server |
797 finally: | 797 finally: |
798 if server: | 798 if server: |
799 server.Shutdown() | 799 server.Shutdown() |
800 | 800 |
801 | 801 |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1011 # Archive on non-trybots. | 1011 # Archive on non-trybots. |
1012 if options.archive or buildbot_common.IsSDKBuilder(): | 1012 if options.archive or buildbot_common.IsSDKBuilder(): |
1013 BuildStepArchiveBundle(pepper_ver, clnumber, tarfile) | 1013 BuildStepArchiveBundle(pepper_ver, clnumber, tarfile) |
1014 BuildStepArchiveSDKTools() | 1014 BuildStepArchiveSDKTools() |
1015 | 1015 |
1016 return 0 | 1016 return 0 |
1017 | 1017 |
1018 | 1018 |
1019 if __name__ == '__main__': | 1019 if __name__ == '__main__': |
1020 sys.exit(main(sys.argv)) | 1020 sys.exit(main(sys.argv)) |
OLD | NEW |