gitlab-ci: Ensure that all commits on a branch are submodule-linted
authorBen Gamari <ben@smart-cactus.org>
Sat, 8 Jun 2019 20:44:55 +0000 (16:44 -0400)
committerBen Gamari <ben@smart-cactus.org>
Sat, 8 Jun 2019 20:44:55 +0000 (16:44 -0400)
commit8754002973dcde8709458044e541ddc8f4fcf6bb
tree1d9b0e96172abfafd113cb02d1844a8ffefaeda9
parent4a72259d6dcc350d37a50064c18ffcafd03233be
gitlab-ci: Ensure that all commits on a branch are submodule-linted

The previous commit reworked things such that the submodule linter would
only run on the head commit. However, the linter only checks the
submodules which are touched by the commits it is asked to lint.
Consequently it would be possible for a bad submodule to sneak through.

Thankfully, we can use the handy CI_COMMIT_BEFORE_SHA attribute to
find the base commit of the push.
.gitlab-ci.yml