Attempt to move travis script logic into travis.yml to use travis_retry.