OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 | 5 |
6 """Top-level presubmit script for Skia. | 6 """Top-level presubmit script for Skia. |
7 | 7 |
8 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts | 8 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts |
9 for more details about the presubmit API built into gcl. | 9 for more details about the presubmit API built into gcl. |
10 """ | 10 """ |
(...skipping 24 matching lines...) Expand all Loading... |
35 | 35 |
36 AUTHORS_FILE_NAME = 'AUTHORS' | 36 AUTHORS_FILE_NAME = 'AUTHORS' |
37 | 37 |
38 DOCS_PREVIEW_URL = 'https://skia.org/?cl=' | 38 DOCS_PREVIEW_URL = 'https://skia.org/?cl=' |
39 GOLD_TRYBOT_URL = ('https://gold.skia.org/search2?unt=true' | 39 GOLD_TRYBOT_URL = ('https://gold.skia.org/search2?unt=true' |
40 '&query=source_type%3Dgm&master=false&issue=') | 40 '&query=source_type%3Dgm&master=false&issue=') |
41 | 41 |
42 # Path to CQ bots feature is described in https://bug.skia.org/4364 | 42 # Path to CQ bots feature is described in https://bug.skia.org/4364 |
43 PATH_PREFIX_TO_EXTRA_TRYBOTS = { | 43 PATH_PREFIX_TO_EXTRA_TRYBOTS = { |
44 # pylint: disable=line-too-long | 44 # pylint: disable=line-too-long |
45 'cmake/': 'client.skia.compile:Build-Mac10.9-Clang-x86_64-Release-CMake-Tryb
ot,Build-Ubuntu-GCC-x86_64-Release-CMake-Trybot', | 45 'cmake/': 'client.skia.compile:Build-Mac-Clang-x86_64-Release-CMake-Trybot,B
uild-Ubuntu-GCC-x86_64-Release-CMake-Trybot', |
46 # pylint: disable=line-too-long | 46 # pylint: disable=line-too-long |
47 'src/opts/': 'client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_N
O_SIMD-Trybot', | 47 'src/opts/': 'client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_N
O_SIMD-Trybot', |
48 | 48 |
49 'include/private/SkAtomics.h': ('client.skia:' | 49 'include/private/SkAtomics.h': ('client.skia:' |
50 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-TSAN-Trybot,' | 50 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-TSAN-Trybot,' |
51 'Test-Ubuntu-GCC-Golo-GPU-GT610-x86_64-Release-TSAN-Trybot' | 51 'Test-Ubuntu-GCC-Golo-GPU-GT610-x86_64-Release-TSAN-Trybot' |
52 ), | 52 ), |
53 | 53 |
54 # Below are examples to show what is possible with this feature. | 54 # Below are examples to show what is possible with this feature. |
55 # 'src/svg/': 'master1:abc;master2:def', | 55 # 'src/svg/': 'master1:abc;master2:def', |
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
517 state and an error if it is in 'Closed' state. | 517 state and an error if it is in 'Closed' state. |
518 """ | 518 """ |
519 results = [] | 519 results = [] |
520 results.extend(_CommonChecks(input_api, output_api)) | 520 results.extend(_CommonChecks(input_api, output_api)) |
521 results.extend( | 521 results.extend( |
522 _CheckTreeStatus(input_api, output_api, json_url=( | 522 _CheckTreeStatus(input_api, output_api, json_url=( |
523 SKIA_TREE_STATUS_URL + '/banner-status?format=json'))) | 523 SKIA_TREE_STATUS_URL + '/banner-status?format=json'))) |
524 results.extend(_CheckLGTMsForPublicAPI(input_api, output_api)) | 524 results.extend(_CheckLGTMsForPublicAPI(input_api, output_api)) |
525 results.extend(_CheckOwnerIsInAuthorsFile(input_api, output_api)) | 525 results.extend(_CheckOwnerIsInAuthorsFile(input_api, output_api)) |
526 return results | 526 return results |
OLD | NEW |