Refactor travis install logic to move it into a shell script
Merge pull request #1763 from dstufft/refactor-travis-install

Refactor travis install logic to move it into a shell script