-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Conversation
cache: | ||
directories: | ||
- $HOME/.pip-cache/ | ||
- _build |
There was a problem hiding this comment.
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.
Thanks @stof, it works now! |
- $HOME/.pip-cache/ | ||
- _build | ||
|
||
install: pip install --download-cache $HOME/.pip-cache sphinx==1.1.3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--download-cache
is reported as being deprecated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you could just rely on the default location of the pip cache on Travis: $HOME/.cache/pip
: http://docs.travis-ci.com/user/caching/#pip-cache
👍 |
🚤 |
No description provided.