travis-ci: moved build commands into a script