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

Side by Side Diff: build/build.py

Issue 2239093002: Roll infra/go/src/github.com/luci/luci-go/ 9380f91eb..ea3fb670b (22 commits). (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « build/README.md ('k') | build/packages/buildbucket.yaml » ('j') | 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 2015 The Chromium Authors. All rights reserved. 2 # Copyright 2015 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 """This script rebuilds Python & Go universes of infra.git multiverse and 6 """This script rebuilds Python & Go universes of infra.git multiverse and
7 invokes CIPD client to package and upload chunks of it to the CIPD repository as 7 invokes CIPD client to package and upload chunks of it to the CIPD repository as
8 individual packages. 8 individual packages.
9 9
10 See build/packages/*.yaml for definition of packages and README.md for more 10 See build/packages/*.yaml for definition of packages and README.md for more
(...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after
684 # Nuke all previous copies, make sure out_dir exists. 684 # Nuke all previous copies, make sure out_dir exists.
685 if os.path.exists(cipd_out_dir): 685 if os.path.exists(cipd_out_dir):
686 for p in glob.glob(os.path.join(cipd_out_dir, 'cipd_*')): 686 for p in glob.glob(os.path.join(cipd_out_dir, 'cipd_*')):
687 os.remove(p) 687 os.remove(p)
688 else: 688 else:
689 os.makedirs(cipd_out_dir) 689 os.makedirs(cipd_out_dir)
690 690
691 # Build cipd client binary for the host platform. 691 # Build cipd client binary for the host platform.
692 run_go_build( 692 run_go_build(
693 go_workspace, 693 go_workspace,
694 package='github.com/luci/luci-go/client/cmd/cipd', 694 package='github.com/luci/luci-go/cipd/client/cmd/cipd',
695 output=cipd_exe, 695 output=cipd_exe,
696 rebuild=True, 696 rebuild=True,
697 goos='', 697 goos='',
698 goarch='') 698 goarch='')
699 699
700 return cipd_exe 700 return cipd_exe
701 701
702 702
703 def get_build_out_file(package_out_dir, pkg_def): 703 def get_build_out_file(package_out_dir, pkg_def):
704 """Returns a path where to put built *.cipd package file. 704 """Returns a path where to put built *.cipd package file.
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
944 args.build, 944 args.build,
945 args.upload, 945 args.upload,
946 args.service_url, 946 args.service_url,
947 args.tags or [], 947 args.tags or [],
948 args.service_account_json, 948 args.service_account_json,
949 args.json_output) 949 args.json_output)
950 950
951 951
952 if __name__ == '__main__': 952 if __name__ == '__main__':
953 sys.exit(main(sys.argv[1:])) 953 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « build/README.md ('k') | build/packages/buildbucket.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698