Move travis-handling into separate script