smarter travis script, take two