CI: Use build matrix for multiple jobs
Based on the tips from https://github.com/travis-ci/travis-ci/issues/2646
For T678