smarter travis script, take one