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

Side by Side Diff: tools/buildbot_spec.py

Issue 2154433002: Add "Infra" to the builder_name_schema (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add "Infra" to the builder_name_schema Created 4 years, 5 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 | « no previous file | tools/builder_name_schema.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # 1 #
2 # Copyright 2015 Google Inc. 2 # Copyright 2015 Google Inc.
3 # 3 #
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 # 6 #
7 7
8 #!/usr/bin/env python 8 #!/usr/bin/env python
9 9
10 usage = ''' 10 usage = '''
(...skipping 27 matching lines...) Expand all
38 # list so that we can ignore them. 38 # list so that we can ignore them.
39 cov_skip = [] 39 cov_skip = []
40 40
41 cov_start = lineno()+1 # We care about coverage starting just past this def. 41 cov_start = lineno()+1 # We care about coverage starting just past this def.
42 def gyp_defines(builder_dict): 42 def gyp_defines(builder_dict):
43 gyp_defs = {} 43 gyp_defs = {}
44 44
45 # skia_arch_type. 45 # skia_arch_type.
46 if builder_dict['role'] == builder_name_schema.BUILDER_ROLE_BUILD: 46 if builder_dict['role'] == builder_name_schema.BUILDER_ROLE_BUILD:
47 arch = builder_dict['target_arch'] 47 arch = builder_dict['target_arch']
48 elif builder_dict['role'] == builder_name_schema.BUILDER_ROLE_HOUSEKEEPER: 48 elif builder_dict['role'] in (builder_name_schema.BUILDER_ROLE_HOUSEKEEPER,
49 builder_name_schema.BUILDER_ROLE_INFRA):
49 arch = None 50 arch = None
50 else: 51 else:
51 arch = builder_dict['arch'] 52 arch = builder_dict['arch']
52 53
53 arch_types = { 54 arch_types = {
54 'x86': 'x86', 55 'x86': 'x86',
55 'x86_64': 'x86_64', 56 'x86_64': 'x86_64',
56 'Arm7': 'arm', 57 'Arm7': 'arm',
57 'Arm64': 'arm64', 58 'Arm64': 'arm64',
58 'Mips': 'mips32', 59 'Mips': 'mips32',
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 if len(sys.argv) == 2 and sys.argv[1] == 'test': 407 if len(sys.argv) == 2 and sys.argv[1] == 'test':
407 self_test() 408 self_test()
408 sys.exit(0) 409 sys.exit(0)
409 410
410 if len(sys.argv) != 3: 411 if len(sys.argv) != 3:
411 print usage 412 print usage
412 sys.exit(1) 413 sys.exit(1)
413 414
414 with open(sys.argv[1], 'w') as out: 415 with open(sys.argv[1], 'w') as out:
415 json.dump(get_builder_spec(sys.argv[2]), out) 416 json.dump(get_builder_spec(sys.argv[2]), out)
OLDNEW
« no previous file with comments | « no previous file | tools/builder_name_schema.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698