Make .travis.yml directly portable across repos

Didn't test, but should DTRT for self-tests and for other people's repos.