CI: Properly run gitlint in CI 56/67656/1
authorAndrew Grimberg <agrimberg@linuxfoundation.org>
Mon, 10 May 2021 16:14:15 +0000 (09:14 -0700)
committerAndrew Grimberg <agrimberg@linuxfoundation.org>
Mon, 10 May 2021 16:14:15 +0000 (09:14 -0700)
commit41e160233e5888e1504cf74ba48efdefb7368657
tree958467bc6a676740b1ad711400c388506bc83f37
parent2fa75cbbb90658de293b827e1b3711b2b9f90eb8
CI: Properly run gitlint in CI

When running pre-commit in a CI system the COMMIT_EDITMSG does not
(normally) get created as that is an artifact of editing the commit
message. If the file doesn't exist then gitlint will skip which makes it
possible for pre-commit checks that should fail, to pass.

Since we want tox to run in a consistent manner both locally and in CI
we need to play around a little with how we are checking the commit
message.

Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Change-Id: Ife7b4f04be2bad582d2f406c9c72bf772b097b21
tox.ini