Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve travis build speed #5455

Merged
merged 3 commits into from
Jul 16, 2015
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
12 changes: 7 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
language: python

python:
- "2.7"
python: "2.7"

sudo: false

install:
- "pip install -q -r requirements.txt --use-mirrors"
cache:
directories:
- $HOME/.pip-cache/
- _build
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this caches the build documentation of previous builds with the same target branch. Sphinx detects changes from the last build and then executes a partial build. This will make the build process a lot quicker.


install: pip install --download-cache $HOME/.pip-cache --user sphinx==1.1.3
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there was no need for a special requirements file. And as pip now has a cache configured, it'll skip the download on all builds.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Though this command seems to fail on Travis.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--user should not be used here. Python VMs are using a python virtualenv to isolate pip setups already (using --user is needed when using pip on non-Python VMs to avoid the need for sudo).


script: sphinx-build -nW -b html -d _build/doctrees . _build/html

branches:
except:
- github-comments

1 change: 0 additions & 1 deletion requirements.txt

This file was deleted.