It looks like https://github.com/travis-ci/travis-yml is the module responsible for matrix expansion.