moving travis-ci commands from yml into a shell script