Update travis config to speed up builds.
Merge pull request #4212 from ADmad/3.0-travis

Update travis config to speed up builds.