Don't use all projects for master / release builds
This commit is contained in:
parent
e08efbcf2a
commit
82daa321a2
2 changed files with 6 additions and 2 deletions
|
@ -28,7 +28,8 @@ if __name__ == '__main__':
|
||||||
'export SRC=${BUILDKITE_BUILD_PATH}/llvm-premerge-checks',
|
'export SRC=${BUILDKITE_BUILD_PATH}/llvm-premerge-checks',
|
||||||
'rm -rf ${SRC}',
|
'rm -rf ${SRC}',
|
||||||
'git clone --depth 1 --branch ${scripts_branch} https://github.com/google/llvm-premerge-checks.git ${SRC}',
|
'git clone --depth 1 --branch ${scripts_branch} https://github.com/google/llvm-premerge-checks.git ${SRC}',
|
||||||
'${SRC}/scripts/premerge_checks.py --check-clang-format --check-clang-tidy --projects=default',
|
'${SRC}/scripts/premerge_checks.py --check-clang-format --check-clang-tidy '
|
||||||
|
'--projects="clang;clang-tools-extra;libc;libcxx;libcxxabi;lld;libunwind;mlir;flang"',
|
||||||
],
|
],
|
||||||
'artifact_paths': ['artifacts/**/*', '*_result.json'],
|
'artifact_paths': ['artifacts/**/*', '*_result.json'],
|
||||||
'agents': {'queue': queue, 'os': 'linux'}
|
'agents': {'queue': queue, 'os': 'linux'}
|
||||||
|
|
|
@ -88,7 +88,10 @@ if __name__ == '__main__':
|
||||||
parser.add_argument('--log-level', type=str, default='WARNING')
|
parser.add_argument('--log-level', type=str, default='WARNING')
|
||||||
parser.add_argument('--check-clang-format', action='store_true')
|
parser.add_argument('--check-clang-format', action='store_true')
|
||||||
parser.add_argument('--check-clang-tidy', action='store_true')
|
parser.add_argument('--check-clang-tidy', action='store_true')
|
||||||
parser.add_argument('--projects', type=str, default='detect', choices=['detect', 'default'])
|
parser.add_argument('--projects', type=str, default='detect',
|
||||||
|
help="Projects to select, either a list or projects like 'clang;libc', or "
|
||||||
|
"'detect' to automatically infer proejcts from the diff, or "
|
||||||
|
"'default' to add all enabled projects")
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
logging.basicConfig(level=args.log_level, format='%(levelname)-7s %(message)s')
|
logging.basicConfig(level=args.log_level, format='%(levelname)-7s %(message)s')
|
||||||
build_dir = ''
|
build_dir = ''
|
||||||
|
|
Loading…
Reference in a new issue