Is it possible to execute a command immediately after git checkout? That is, before cache fetch? (before_cache
is executed before cache save, so that’s not helpful…)
No, it’s not. What do you want to execute?
I’d like to have the possibility to immediately abort a matrix build based on which which files are affected by the git commit range, without having to wait for the cache fetch.
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