OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 from buildbot.scheduler import Triggerable | 5 from buildbot.scheduler import Triggerable |
6 from buildbot.schedulers.basic import SingleBranchScheduler | 6 from buildbot.schedulers.basic import SingleBranchScheduler |
7 | 7 |
8 from master.factory import annotator_factory | 8 from master.factory import annotator_factory |
9 | 9 |
10 m_annotator = annotator_factory.AnnotatorFactory() | 10 m_annotator = annotator_factory.AnnotatorFactory() |
(...skipping 11 matching lines...) Expand all Loading... |
22 'Linux GN (dbg)', | 22 'Linux GN (dbg)', |
23 ]), | 23 ]), |
24 Triggerable(name='linux_rel_trigger', builderNames=[ | 24 Triggerable(name='linux_rel_trigger', builderNames=[ |
25 'Linux Tests', | 25 'Linux Tests', |
26 ]), | 26 ]), |
27 Triggerable(name='linux_dbg_32_trigger', builderNames=[ | 27 Triggerable(name='linux_dbg_32_trigger', builderNames=[ |
28 'Linux Tests (dbg)(1)(32)', | 28 'Linux Tests (dbg)(1)(32)', |
29 'Linux Tests (dbg)(2)(32)', | 29 'Linux Tests (dbg)(2)(32)', |
30 ]), | 30 ]), |
31 Triggerable(name='linux_dbg_trigger', builderNames=[ | 31 Triggerable(name='linux_dbg_trigger', builderNames=[ |
32 'Linux Tests (dbg)(1)', | 32 'Linux Tests (dbg)', |
33 'Linux Tests (dbg)(2)', | |
34 ]), | 33 ]), |
35 ]) | 34 ]) |
36 specs = [ | 35 specs = [ |
37 { | 36 { |
38 'name': 'Linux Builder', | 37 'name': 'Linux Builder', |
39 'triggers': ['linux_rel_trigger'], | 38 'triggers': ['linux_rel_trigger'], |
40 }, | 39 }, |
41 {'name': 'Linux Tests'}, | 40 {'name': 'Linux Tests'}, |
42 {'name': 'Linux Builder (dbg)(32)', 'triggers': ['linux_dbg_32_trigger']}, | 41 {'name': 'Linux Builder (dbg)(32)', 'triggers': ['linux_dbg_32_trigger']}, |
43 {'name': 'Linux Tests (dbg)(1)(32)'}, | 42 {'name': 'Linux Tests (dbg)(1)(32)'}, |
44 {'name': 'Linux Tests (dbg)(2)(32)'}, | 43 {'name': 'Linux Tests (dbg)(2)(32)'}, |
45 {'name': 'Linux Builder (dbg)', 'triggers': ['linux_dbg_trigger']}, | 44 {'name': 'Linux Builder (dbg)', 'triggers': ['linux_dbg_trigger']}, |
46 {'name': 'Linux Tests (dbg)(1)'}, | 45 {'name': 'Linux Tests (dbg)'}, |
47 {'name': 'Linux Tests (dbg)(2)'}, | |
48 {'name': 'Linux GN', 'recipe': 'chromium_gn'}, | 46 {'name': 'Linux GN', 'recipe': 'chromium_gn'}, |
49 {'name': 'Linux GN (dbg)', 'recipe': 'chromium_gn'}, | 47 {'name': 'Linux GN (dbg)', 'recipe': 'chromium_gn'}, |
50 ] | 48 ] |
51 | 49 |
52 c['builders'].extend([ | 50 c['builders'].extend([ |
53 { | 51 { |
54 'name': spec['name'], | 52 'name': spec['name'], |
55 'factory': m_annotator.BaseFactory( | 53 'factory': m_annotator.BaseFactory( |
56 spec.get('recipe', 'chromium'), | 54 spec.get('recipe', 'chromium'), |
57 factory_properties=spec.get('factory_properties'), | 55 factory_properties=spec.get('factory_properties'), |
58 triggers=spec.get('triggers')), | 56 triggers=spec.get('triggers')), |
59 'notify_on_missing': True, | 57 'notify_on_missing': True, |
60 'category': '4linux', | 58 'category': '4linux', |
61 } for spec in specs | 59 } for spec in specs |
62 ]) | 60 ]) |
OLD | NEW |