Move Travis build steps to script

Instead of having a bunch of crap in yaml.