ci: Don't swallow gitlint warning
Make sure it's reported somewhere readily accessible. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5192>
This commit is contained in:
parent
44720cd2f4
commit
2a5758bcf5
@ -35,9 +35,12 @@ endif
|
|||||||
gitlint_req = '>= 0.18'
|
gitlint_req = '>= 0.18'
|
||||||
gitlint = find_program('gitlint', version: gitlint_req, required: false)
|
gitlint = find_program('gitlint', version: gitlint_req, required: false)
|
||||||
if gitlint.found()
|
if gitlint.found()
|
||||||
run_command(gitlint, 'install-hook', check: false)
|
gitlint_status = run_command(gitlint, 'install-hook', check: false)
|
||||||
|
if gitlint_status.returncode() != 0
|
||||||
|
warning(gitlint_status.stderr().strip())
|
||||||
|
endif
|
||||||
else
|
else
|
||||||
message('gitlint not found or too old, please install it with your package manager or `python3 -m pip install gitlint` to enable the commit message hook')
|
warning('gitlint not found or too old, please install it with your package manager or `python3 -m pip install gitlint` to enable the commit message hook')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
pre_commit_req = '>= 3.6.0'
|
pre_commit_req = '>= 3.6.0'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user