Extract the travis commands to an external script.