CI: Properly run gitlint in CI 41/67641/4
authorAndrew Grimberg <agrimberg@linuxfoundation.org>
Sat, 8 May 2021 14:40:45 +0000 (07:40 -0700)
committerAndrew Grimberg <agrimberg@linuxfoundation.org>
Sat, 8 May 2021 15:19:41 +0000 (08:19 -0700)
commitf36230fbedf0cc4f12ffa307474a72a040917b63
tree655e4857a12ed4143a17e9e8b27849b08fe1b5be
parent50694603867093888fb581b5e1d2444b915e5bc1
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.

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