| OLD | NEW |
| (Empty) |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 from master import master_config | |
| 6 from master.factory import chromium_factory | |
| 7 | |
| 8 defaults = {} | |
| 9 | |
| 10 helper = master_config.Helper(defaults) | |
| 11 B = helper.Builder | |
| 12 F = helper.Factory | |
| 13 T = helper.Triggerable | |
| 14 | |
| 15 def win(): | |
| 16 return chromium_factory.ChromiumFactory('src/build', 'win32') | |
| 17 | |
| 18 defaults['category'] = 'nonlayout' | |
| 19 | |
| 20 # Tests that are single-machine shard-safe. | |
| 21 sharded_tests = [ | |
| 22 'aura_unittests', | |
| 23 'base_unittests', | |
| 24 'browser_tests', | |
| 25 'cacheinvalidation_unittests', | |
| 26 'cc_unittests', | |
| 27 'chromedriver_tests', | |
| 28 'chromedriver_unittests', | |
| 29 'components_unittests', | |
| 30 'content_browsertests', | |
| 31 'content_unittests', | |
| 32 'crypto_unittests', | |
| 33 'device_unittests', | |
| 34 'events_unittests', | |
| 35 'gpu_unittests', | |
| 36 'jingle_unittests', | |
| 37 'media_unittests', | |
| 38 'net_unittests', | |
| 39 'ppapi_unittests', | |
| 40 'printing_unittests', | |
| 41 'remoting_unittests', | |
| 42 # http://crbug.com/157234 | |
| 43 #'sync_integration_tests', | |
| 44 'sync_unit_tests', | |
| 45 'ui_base_unittests', | |
| 46 'ui_touch_selection_unittests', | |
| 47 'unit_tests', | |
| 48 'views_unittests', | |
| 49 ] | |
| 50 | |
| 51 ################################################################################ | |
| 52 ## Release | |
| 53 ################################################################################ | |
| 54 | |
| 55 # Archive location | |
| 56 rel_archive = master_config.GetGSUtilUrl('chromium-build-transfer', | |
| 57 'win-latest-rel') | |
| 58 | |
| 59 # Triggerable scheduler for testers | |
| 60 T('s7_webkit_builder_rel_trigger') | |
| 61 | |
| 62 | |
| 63 # | |
| 64 # Win Rel Builders | |
| 65 # | |
| 66 B('Win Builder', 'f_win_rel', scheduler='global_scheduler', | |
| 67 builddir='win-latest-rel', auto_reboot=False) | |
| 68 # Note: This step both uploads the build to transfer to its triggered builder | |
| 69 # AND archives the build to chromium-webkit-snapshots for prosperity. | |
| 70 F('f_win_rel', win().ChromiumFactory( | |
| 71 build_url=rel_archive, | |
| 72 slave_type='Builder', | |
| 73 options=['--build-tool=ninja', '--compiler=goma', 'chromium_builder'], | |
| 74 factory_properties={ | |
| 75 'trigger': 's7_webkit_builder_rel_trigger', | |
| 76 'gclient_env': { | |
| 77 'GYP_DEFINES': 'fastbuild=1', | |
| 78 'GYP_GENERATORS': 'ninja', | |
| 79 }, | |
| 80 'archive_build': True, | |
| 81 'blink_config': 'blink', | |
| 82 'build_name': 'Win', | |
| 83 'gs_bucket': 'gs://chromium-webkit-snapshots', | |
| 84 'gs_acl': 'public-read', | |
| 85 })) | |
| 86 | |
| 87 # | |
| 88 # Win Rel testers+builders | |
| 89 # | |
| 90 # TODO: Switch back to trigger, http://crbug.com/102331 | |
| 91 | |
| 92 B('Win7 Tests', 'f_win_rel_tests', scheduler='s7_webkit_builder_rel_trigger') | |
| 93 F('f_win_rel_tests', win().ChromiumFactory( | |
| 94 slave_type='Tester', | |
| 95 build_url=rel_archive, | |
| 96 tests=[ | |
| 97 'installer', | |
| 98 'browser_tests', | |
| 99 'content_browsertests', | |
| 100 'telemetry_unittests', | |
| 101 'unit', | |
| 102 ], | |
| 103 factory_properties={ | |
| 104 'perf_id': 'chromium-rel-win7-webkit', | |
| 105 'show_perf_results': True, | |
| 106 'generate_gtest_json': True, | |
| 107 'start_crash_handler': True, | |
| 108 'test_results_server': 'test-results.appspot.com', | |
| 109 'blink_config': 'blink', | |
| 110 })) | |
| 111 | |
| 112 ################################################################################ | |
| 113 ## Debug | |
| 114 ################################################################################ | |
| 115 | |
| 116 | |
| 117 # | |
| 118 # Win Dbg Builder | |
| 119 # | |
| 120 B('Win7 (dbg)', 'f_win_dbg', scheduler='global_scheduler', | |
| 121 builddir='win-latest-dbg') | |
| 122 F('f_win_dbg', win().ChromiumFactory( | |
| 123 target='Debug', | |
| 124 options=['--build-tool=ninja', '--compiler=goma', 'chromium_builder'], | |
| 125 tests=[ | |
| 126 'browser_tests', | |
| 127 'content_browsertests', | |
| 128 'interactive_ui_tests', | |
| 129 'telemetry_unittests', | |
| 130 'unit', | |
| 131 ], | |
| 132 factory_properties={ | |
| 133 'sharded_tests': sharded_tests, | |
| 134 'start_crash_handler': True, | |
| 135 'generate_gtest_json': True, | |
| 136 'gclient_env': { | |
| 137 'GYP_DEFINES': 'fastbuild=1', | |
| 138 'GYP_GENERATORS': 'ninja', | |
| 139 }, | |
| 140 'blink_config': 'blink', | |
| 141 })) | |
| 142 | |
| 143 def Update(_config, _active_master, c): | |
| 144 return helper.Update(c) | |
| OLD | NEW |