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 1667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1678 ]) | 1678 ]) |
1679 if all(re.search(r'(^|[\\\/_])android[\\\/_.]', f) and | 1679 if all(re.search(r'(^|[\\\/_])android[\\\/_.]', f) and |
1680 not re.search(r'(^|[\\\/_])devtools[\\\/_.]', f) for f in files): | 1680 not re.search(r'(^|[\\\/_])devtools[\\\/_.]', f) for f in files): |
1681 return GetDefaultTryConfigs([ | 1681 return GetDefaultTryConfigs([ |
1682 'android_aosp', | 1682 'android_aosp', |
1683 'android_dbg_tests_recipe', | 1683 'android_dbg_tests_recipe', |
1684 ]) | 1684 ]) |
1685 if all(re.search(r'[\\\/_]ios[\\\/_.]', f) for f in files): | 1685 if all(re.search(r'[\\\/_]ios[\\\/_.]', f) for f in files): |
1686 return GetDefaultTryConfigs(['ios_rel_device', 'ios_dbg_simulator']) | 1686 return GetDefaultTryConfigs(['ios_rel_device', 'ios_dbg_simulator']) |
1687 | 1687 |
1688 builders = [ | 1688 import os |
1689 'android_aosp', | 1689 import json |
1690 'android_arm64_dbg_recipe', | 1690 with open(os.path.join( |
1691 'android_arm64_dbg_recipe', | 1691 change.RepositoryRoot(), 'testing', 'commit_queue', 'config.json')) as f: |
1692 'android_chromium_gn_compile_dbg', | 1692 cq_config = json.load(f) |
1693 'android_chromium_gn_compile_rel', | 1693 cq_trybots = cq_config.get('trybots', {}) |
1694 'android_clang_dbg_recipe', | 1694 builders = cq_trybots.get('launched', {}) |
1695 'android_clang_dbg_recipe', | 1695 for master, master_config in cq_trybots.get('triggered', {}).iteritems(): |
1696 'android_dbg_tests_recipe', | 1696 for triggered_bot in master_config: |
1697 'ios_dbg_simulator', | 1697 builders.get(master, {}).pop(triggered_bot, None) |
1698 'ios_rel_device', | |
1699 'ios_rel_device_ninja', | |
1700 'linux_chromium_asan_rel', | |
1701 'linux_chromium_chromeos_compile_dbg_ng', | |
1702 'linux_chromium_chromeos_rel_ng', | |
1703 'linux_chromium_compile_dbg_32_ng', | |
1704 'linux_chromium_gn_dbg', | |
1705 'linux_chromium_gn_rel', | |
1706 'linux_chromium_rel_ng', | |
1707 'linux_gpu', | |
1708 'mac_chromium_compile_dbg_ng', | |
1709 'mac_chromium_rel_ng', | |
1710 'win8_chromium_rel', | |
1711 'win_chromium_compile_dbg', | |
1712 'win_chromium_rel_ng', | |
1713 'win_chromium_x64_rel_ng', | |
1714 'win_gpu', | |
1715 ] | |
1716 | 1698 |
1717 # Match things like path/aura/file.cc and path/file_aura.cc. | 1699 # Match things like path/aura/file.cc and path/file_aura.cc. |
1718 # Same for chromeos. | 1700 # Same for chromeos. |
1719 if any(re.search(r'[\\\/_](aura|chromeos)', f) for f in files): | 1701 if any(re.search(r'[\\\/_](aura|chromeos)', f) for f in files): |
1720 builders.extend([ | 1702 tryserver_linux = builders.setdefault('tryserver.chromium.linux', {}) |
1721 'linux_chromium_chromeos_asan_rel_ng', | 1703 tryserver_linux['linux_chromium_chromeos_asan_rel_ng'] = ['defaulttests'] |
1722 ]) | |
1723 | 1704 |
1724 return GetDefaultTryConfigs(builders) | 1705 return builders |
OLD | NEW |