Execute command immediately after git checkout?

I’ve kinda worked around this by having a parent build that triggers a new matrix build based on the touched files in the TRAVIS_COMMIT_RANGE. It’s fairly hacky since the API doesn’t support triggering a specific commit, but it works for now: Trigger a specific commit via the Travis API