Skip to content

cache pip for faster CI build #865

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

Merged
merged 2 commits into from
Oct 13, 2018
Merged

cache pip for faster CI build #865

merged 2 commits into from
Oct 13, 2018

Conversation

lgarithm
Copy link
Member

@lgarithm lgarithm commented Oct 13, 2018

Currently pip install takes about 90s out of 3m30s per build.

@luomai luomai self-requested a review October 13, 2018 11:11
luomai
luomai previously approved these changes Oct 13, 2018
@DEKHTIARJonathan
Copy link
Member

Does it actually works? I tried to do it but never succeeded 😅

@lgarithm
Copy link
Member Author

Not yet, maybe some additional steps are required:
https://docs.travis-ci.com/user/caching/#before_cache-phase
Or maybe this needs to be on master to make it work for later CIs.

@lgarithm
Copy link
Member Author

Basically I'd like to cache the .whl files downloaded by pip.
I need to make sure they are stored in $HOME/.cache/pip.

@lgarithm
Copy link
Member Author

@luomai @DEKHTIARJonathan I think the cache is working now.
pip install is using cache and the time it takes reduced to 45s from 90s.

@DEKHTIARJonathan
Copy link
Member

Fine with me I merge 😊

@lgarithm lgarithm merged commit 6007ef3 into master Oct 13, 2018
@lgarithm lgarithm deleted the lgarithm-patch-3 branch October 13, 2018 13:02
luomai pushed a commit that referenced this pull request Nov 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants