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 """Top-level presubmit script for Chromium. | 5 """Top-level presubmit script for Chromium. |
6 | 6 |
7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts | 7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts |
8 for more details about the presubmit API built into gcl. | 8 for more details about the presubmit API built into gcl. |
9 """ | 9 """ |
10 | 10 |
(...skipping 1253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1264 'ash_unittests', | 1264 'ash_unittests', |
1265 'chromeos_unittests', | 1265 'chromeos_unittests', |
1266 'components_unittests', | 1266 'components_unittests', |
1267 'dbus_unittests', | 1267 'dbus_unittests', |
1268 'device_unittests', | 1268 'device_unittests', |
1269 'events_unittests', | 1269 'events_unittests', |
1270 'google_apis_unittests', | 1270 'google_apis_unittests', |
1271 'sandbox_linux_unittests', | 1271 'sandbox_linux_unittests', |
1272 ], | 1272 ], |
1273 'linux_clang': ['compile'], | 1273 'linux_clang': ['compile'], |
1274 'linux_nacl_sdk': [], | |
ghost stip (do not use)
2014/01/06 23:43:49
make these ['defaulttests']
binji
2014/01/06 23:55:24
Done.
| |
1274 'linux_rel': standard_tests + [ | 1275 'linux_rel': standard_tests + [ |
1275 'cc_unittests', | 1276 'cc_unittests', |
1276 'chromedriver_unittests', | 1277 'chromedriver_unittests', |
1277 'components_unittests', | 1278 'components_unittests', |
1278 'google_apis_unittests', | 1279 'google_apis_unittests', |
1279 'nacl_integration', | 1280 'nacl_integration', |
1280 'remoting_unittests', | 1281 'remoting_unittests', |
1281 'sandbox_linux_unittests', | 1282 'sandbox_linux_unittests', |
1282 'sync_integration_tests', | 1283 'sync_integration_tests', |
1283 ], | 1284 ], |
1284 'mac': ['compile'], | 1285 'mac': ['compile'], |
1286 'mac_nacl_sdk': [], | |
1285 'mac_rel': standard_tests + [ | 1287 'mac_rel': standard_tests + [ |
1286 'app_list_unittests', | 1288 'app_list_unittests', |
1287 'cc_unittests', | 1289 'cc_unittests', |
1288 'chromedriver_unittests', | 1290 'chromedriver_unittests', |
1289 'components_unittests', | 1291 'components_unittests', |
1290 'google_apis_unittests', | 1292 'google_apis_unittests', |
1291 'message_center_unittests', | 1293 'message_center_unittests', |
1292 'nacl_integration', | 1294 'nacl_integration', |
1293 'remoting_unittests', | 1295 'remoting_unittests', |
1294 'sync_integration_tests', | 1296 'sync_integration_tests', |
1295 'telemetry_unittests', | 1297 'telemetry_unittests', |
1296 ], | 1298 ], |
1297 'win': ['compile'], | 1299 'win': ['compile'], |
1300 'win_nacl_sdk': [], | |
1298 'win_rel': standard_tests + [ | 1301 'win_rel': standard_tests + [ |
1299 'app_list_unittests', | 1302 'app_list_unittests', |
1300 'ash_unittests', | 1303 'ash_unittests', |
1301 'aura_unittests', | 1304 'aura_unittests', |
1302 'cc_unittests', | 1305 'cc_unittests', |
1303 'chrome_elf_unittests', | 1306 'chrome_elf_unittests', |
1304 'chromedriver_unittests', | 1307 'chromedriver_unittests', |
1305 'components_unittests', | 1308 'components_unittests', |
1306 'compositor_unittests', | 1309 'compositor_unittests', |
1307 'events_unittests', | 1310 'events_unittests', |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1377 if all(re.search('\.(m|mm)$|(^|[/_])mac[/_.]', f) for f in files): | 1380 if all(re.search('\.(m|mm)$|(^|[/_])mac[/_.]', f) for f in files): |
1378 return GetDefaultTryConfigs(['mac', 'mac_rel']) | 1381 return GetDefaultTryConfigs(['mac', 'mac_rel']) |
1379 if all(re.search('(^|[/_])win[/_.]', f) for f in files): | 1382 if all(re.search('(^|[/_])win[/_.]', f) for f in files): |
1380 return GetDefaultTryConfigs(['win', 'win_rel']) | 1383 return GetDefaultTryConfigs(['win', 'win_rel']) |
1381 if all(re.search('(^|[/_])android[/_.]', f) for f in files): | 1384 if all(re.search('(^|[/_])android[/_.]', f) for f in files): |
1382 return GetDefaultTryConfigs([ | 1385 return GetDefaultTryConfigs([ |
1383 'android_aosp', | 1386 'android_aosp', |
1384 'android_clang_dbg', | 1387 'android_clang_dbg', |
1385 'android_dbg', | 1388 'android_dbg', |
1386 ]) | 1389 ]) |
1387 if all(re.search('^native_client_sdk', f) for f in files): | |
1388 return GetDefaultTryConfigs([ | |
1389 'linux_nacl_sdk', | |
1390 'mac_nacl_sdk', | |
1391 'win_nacl_sdk', | |
1392 ]) | |
1393 if all(re.search('[/_]ios[/_.]', f) for f in files): | 1390 if all(re.search('[/_]ios[/_.]', f) for f in files): |
1394 return GetDefaultTryConfigs(['ios_rel_device', 'ios_dbg_simulator']) | 1391 return GetDefaultTryConfigs(['ios_rel_device', 'ios_dbg_simulator']) |
1395 | 1392 |
1396 trybots = GetDefaultTryConfigs([ | 1393 trybots = GetDefaultTryConfigs([ |
1397 'android_clang_dbg', | 1394 'android_clang_dbg', |
1398 'android_dbg', | 1395 'android_dbg', |
1399 'ios_dbg_simulator', | 1396 'ios_dbg_simulator', |
1400 'ios_rel_device', | 1397 'ios_rel_device', |
1401 'linux_aura', | 1398 'linux_aura', |
1402 'linux_asan', | 1399 'linux_asan', |
(...skipping 21 matching lines...) Expand all Loading... | |
1424 if any(re.search('^(base|build|chromeos).*\.gypi?$', f) for f in files): | 1421 if any(re.search('^(base|build|chromeos).*\.gypi?$', f) for f in files): |
1425 trybots.extend(GetDefaultTryConfigs(['cros_x86'])) | 1422 trybots.extend(GetDefaultTryConfigs(['cros_x86'])) |
1426 | 1423 |
1427 # The AOSP bot doesn't build the chrome/ layer, so ignore any changes to it | 1424 # The AOSP bot doesn't build the chrome/ layer, so ignore any changes to it |
1428 # unless they're .gyp(i) files as changes to those files can break the gyp | 1425 # unless they're .gyp(i) files as changes to those files can break the gyp |
1429 # step on that bot. | 1426 # step on that bot. |
1430 if (not all(re.search('^chrome', f) for f in files) or | 1427 if (not all(re.search('^chrome', f) for f in files) or |
1431 any(re.search('\.gypi?$', f) for f in files)): | 1428 any(re.search('\.gypi?$', f) for f in files)): |
1432 trybots.extend(GetDefaultTryConfigs(['android_aosp'])) | 1429 trybots.extend(GetDefaultTryConfigs(['android_aosp'])) |
1433 | 1430 |
1431 # Run native_client_sdk changes on the NaCl SDK trybots. | |
1432 if any(re.search('^native_client_sdk', f) for f in files): | |
1433 trybots.extend(GetDefaultTryConfigs([ | |
1434 'linux_nacl_sdk', | |
1435 'mac_nacl_sdk', | |
1436 'win_nacl_sdk', | |
1437 ])) | |
1438 | |
1434 return trybots | 1439 return trybots |
OLD | NEW |