Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ script:
python -m doctr deploy --sync --key-path deploy_key.enc "branch-whitelist" --branch-whitelist branch-whitelist;
# Test --exclude
python -m doctr deploy --sync --key-path deploy_key.enc "exclude-test" --built-docs docs/_build/html --exclude tests.html;
# Test syncing lots of files
mkdir -p lots-of-files-test;
python -c "for i in range(10000): open('lots-of-files-test/test-%s' % i, 'w')";
python -m doctr deploy --sync --key-path deploy_key.enc lots-of-files-test --built-docs lots-of-files-test;
fi
- if [[ "${TESTS}" == "true" ]]; then
pyflakes doctr;
Expand Down
9 changes: 5 additions & 4 deletions doctr/travis.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,10 +476,11 @@ def commit_docs(*, added, removed):

DOCTR_COMMAND = ' '.join(map(shlex.quote, sys.argv))

for f in added:
run(['git', 'add', f])
for f in removed:
run(['git', 'rm', f])

if added:
run(['git', 'add', *added])
if removed:
run(['git', 'rm', *removed])

commit_message = """\
Update docs after building Travis build {TRAVIS_BUILD_NUMBER} of
Expand Down