Move the travis automation into a script