| OLD | NEW |
| (Empty) |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 import copy | |
| 6 import os | |
| 7 import sys | |
| 8 | |
| 9 from . import chromium_linux | |
| 10 from . import chromium_mac | |
| 11 from . import chromium_win | |
| 12 | |
| 13 # TODO(luqui): Separate the skia common scripts out so we can make this | |
| 14 # independent of build/. | |
| 15 sys.path.append( | |
| 16 os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname( | |
| 17 os.path.abspath(__file__)))))) | |
| 18 from common.skia import builder_name_schema | |
| 19 | |
| 20 # The Skia config just clones some regular Chromium builders, except that they | |
| 21 # use an up-to-date Skia. | |
| 22 | |
| 23 # This list specifies which Chromium builders to "copy". | |
| 24 _builders = [ | |
| 25 # SPEC Module Test Spec File Builder Names | |
| 26 (chromium_linux, 'chromium.linux.json', ['Linux Builder', 'Linux Tests']), | |
| 27 (chromium_win, 'chromium.win.json', ['Win Builder', 'Win7 Tests (1)']), | |
| 28 (chromium_mac, 'chromium.mac.json', ['Mac Builder', 'Mac10.9 Tests']), | |
| 29 ] | |
| 30 | |
| 31 SPEC = { | |
| 32 'settings': { | |
| 33 'build_gs_bucket': 'chromium-skia-gm', | |
| 34 }, | |
| 35 'builders': {}, | |
| 36 } | |
| 37 | |
| 38 for spec_module, test_spec_file, builders_list in _builders: | |
| 39 for builder in builders_list: | |
| 40 for builder_name in (builder, builder_name_schema.TrybotName(builder)): | |
| 41 builder_cfg = copy.deepcopy(spec_module.SPEC['builders'][builder]) | |
| 42 builder_cfg['gclient_config'] = 'chromium_skia' | |
| 43 builder_cfg['testing']['test_spec_file'] = test_spec_file | |
| 44 builder_cfg['patch_root'] = 'src/third_party/skia' | |
| 45 SPEC['builders'][builder_name] = builder_cfg | |
| OLD | NEW |