mirror of
https://gitea.windcorp.ru/Wind-Corporation/Progressia.git
synced 2025-04-21 12:20:46 +03:00
TMP / pre-commit.py: make parallelism a str
This commit is contained in:
parent
8690f57833
commit
854d3d3308
@ -186,9 +186,11 @@ def unformat_project(indexed):
|
||||
def build_project():
|
||||
"""Build project with cmake."""
|
||||
print('Building project')
|
||||
build_log = invoke(*cmake, '--build', build_root, '--parallel', parallelism,
|
||||
result_when_dry=CLANG_TIDY_CHECK_MARKER,
|
||||
quiet=False)
|
||||
build_log = invoke(*cmake,
|
||||
'--build', build_root,
|
||||
'--parallel', str(parallelism),
|
||||
result_when_dry=CLANG_TIDY_CHECK_MARKER,
|
||||
quiet=False)
|
||||
|
||||
if CLANG_TIDY_CHECK_MARKER not in build_log.splitlines():
|
||||
fail('Project build was successful, but clang-tidy did not run. '
|
||||
|
Loading…
x
Reference in New Issue
Block a user