Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions doctr/travis.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ def push_docs(deploy_branch='gh-pages', retries=5):
"""

code = 1
while code and retries:
for i in range(retries):
print("Pulling")
code = run(['git', 'pull', '-s', 'recursive', '-X', 'ours',
'doctr_remote', deploy_branch], exit=False)
Expand All @@ -554,10 +554,10 @@ def push_docs(deploy_branch='gh-pages', retries=5):
if code:
retries -= 1
print("Push failed, retrying")
time.sleep(1)
time.sleep(2**i)
else:
return
sys.exit("Giving up...")
sys.exit("Giving up pushing after {retries} tries :(".format(retries=retries))

def last_commit_by_doctr():
"""Check whether the author of `HEAD` is `doctr` to avoid starting an
Expand Down