Testing repositories with private submodules in Travis

Recently I’ve been working on a project we’re testing in Travis CI and we need to include some submodules referencing private GitHub repositories then run the tests on the combined code. Naturally Travis fails to retrieve the submoduled repositories, because it’s not authorised to do so. This is how we’re getting around that…