Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Side by Side Diff: native_client_sdk/src/build_tools/build_sdk.py

Issue 10271013: [NaCl SDK] Push sdk_tools.tgz to commondatastorage on linux buildbots. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: feedback Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 664 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 filelist = os.listdir(os.path.join(pepperdir, 'examples')) 675 filelist = os.listdir(os.path.join(pepperdir, 'examples'))
676 for filenode in filelist: 676 for filenode in filelist:
677 dirnode = os.path.join(pepperdir, 'examples', filenode) 677 dirnode = os.path.join(pepperdir, 'examples', filenode)
678 makefile = os.path.join(dirnode, 'Makefile') 678 makefile = os.path.join(dirnode, 'Makefile')
679 if os.path.isfile(makefile): 679 if os.path.isfile(makefile):
680 print "\n\nMake: " + dirnode 680 print "\n\nMake: " + dirnode
681 buildbot_common.Run(['make', 'all', '-j8'], 681 buildbot_common.Run(['make', 'all', '-j8'],
682 cwd=os.path.abspath(dirnode), shell=True) 682 cwd=os.path.abspath(dirnode), shell=True)
683 683
684 # Archive on non-trybots. 684 # Archive on non-trybots.
685 if options.archive or '-sdk' in os.environ.get('BUILDBOT_BUILDERNAME', ''): 685 buildername = os.environ.get('BUILDBOT_BUILDERNAME', '')
686 if options.archive or '-sdk' in buildername:
686 buildbot_common.BuildStep('Archive build') 687 buildbot_common.BuildStep('Archive build')
687 bucket_path = 'nativeclient-mirror/nacl/nacl_sdk/%s' % \ 688 bucket_path = 'nativeclient-mirror/nacl/nacl_sdk/%s' % \
688 build_utils.ChromeVersion() 689 build_utils.ChromeVersion()
689 buildbot_common.Archive(tarname, bucket_path, os.path.dirname(tarfile)) 690 buildbot_common.Archive(tarname, bucket_path, os.path.dirname(tarfile))
690 691
692 if not skip_update:
693 # Only push up sdk_tools.tgz on the linux buildbot.
694 if buildername == 'linux-sdk-multi':
695 sdk_tools = os.path.join(OUT_DIR, 'sdk_tools.tgz')
696 buildbot_common.Archive('sdk_tools.tgz', bucket_path, OUT_DIR,
697 step_link=False)
698
691 # generate "manifest snippet" for this archive. 699 # generate "manifest snippet" for this archive.
692 if not skip_test_updater: 700 if not skip_test_updater:
693 archive = bundle.GetArchive(manifest_util.GetHostOS()) 701 archive = bundle.GetArchive(manifest_util.GetHostOS())
694 archive.url = 'https://commondatastorage.googleapis.com/' \ 702 archive.url = 'https://commondatastorage.googleapis.com/' \
695 'nativeclient-mirror/nacl/nacl_sdk/%s/%s' % ( 703 'nativeclient-mirror/nacl/nacl_sdk/%s/%s' % (
696 build_utils.ChromeVersion(), tarname) 704 build_utils.ChromeVersion(), tarname)
697 manifest_snippet_file = os.path.join(OUT_DIR, tarname + '.json') 705 manifest_snippet_file = os.path.join(OUT_DIR, tarname + '.json')
698 with open(manifest_snippet_file, 'wb') as manifest_snippet_stream: 706 with open(manifest_snippet_file, 'wb') as manifest_snippet_stream:
699 manifest_snippet_stream.write(bundle.ToJSON()) 707 manifest_snippet_stream.write(bundle.ToJSON())
700 708
701 buildbot_common.Archive(tarname + '.json', bucket_path, OUT_DIR, 709 buildbot_common.Archive(tarname + '.json', bucket_path, OUT_DIR,
702 step_link=False) 710 step_link=False)
703 711
704 return 0 712 return 0
705 713
706 714
707 if __name__ == '__main__': 715 if __name__ == '__main__':
708 sys.exit(main(sys.argv)) 716 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698