Pysyft: Caching in Travis build

Created on 2 Jun 2018  ·  3Comments  ·  Source: OpenMined/PySyft

Currently, we're using Travis for CI. At the moment, it's doing a fresh install of all dependencies. We should be caching static, bulky dependencies like PyTorch, so as to improve the build time. More information at this link: https://docs.travis-ci.com/user/caching/#Caching-directories-(Bundler%2C-dependencies)

Most helpful comment

@iamtrask @jvmancuso could someone close this issue as it seems to be resolved already?

All 3 comments

@jvmancuso I think, we are already caching everything.

Collecting sphinx_rtd_theme (from -r requirements.txt (line 1))
...
Using cached

Our .travis.yml file reads

**cache: pip**
python:
    #- 2.7
    - 3.6

Travis CI Logs

Collecting sphinx_rtd_theme (from -r requirements.txt (line 1))
Using cached https://files.pythonhosted.org/packages/87/30/7460f7b77b6e8a080dd3688f750fe5d5666c49358f8941449c5b128fa97d/sphinx_rtd_theme-0.4.1-py2.py3-none-any.whl
Collecting sphinx (from sphinx_rtd_theme->-r requirements.txt (line 1))
Using cached https://files.pythonhosted.org/packages/35/e0/e9e83b244eaa382ba21896dda6172617e47aff0be225eb72782cca105d3c/Sphinx-1.8.1-py2.py3-none-any.whl
Requirement already satisfied: six>=1.5 in /home/travis/miniconda/envs/test-environment/lib/python3.6/site-packages (from sphinx->sphinx_rtd_theme->-r requirements.txt (line 1)) (1.11.0)
Requirement already satisfied: Pygments>=2.0 in /home/travis/miniconda/envs/test-environment/lib/python3.6/site-packages (from sphinx->sphinx_rtd_theme->-r requirements.txt (line 1)) (2.2.0)
Collecting imagesize (from sphinx->sphinx_rtd_theme->-r requirements.txt (line 1))
Using cached https://files.pythonhosted.org/packages/fc/b6/aef66b4c52a6ad6ac18cf6ebc5731ed06d8c9ae4d3b2d9951f261150be67/imagesize-1.1.0-py2.py3-none-any.whl
Collecting snowballstemmer>=1.1 (from sphinx->sphinx_rtd_theme->-r requirements.txt (line 1))
Using cached https://files.pythonhosted.org/packages/d4/6c/8a935e2c7b54a37714656d753e4187ee0631988184ed50c0cf6476858566/snowballstemmer-1.2.1-py2.py3-none-any.whl

🤷‍♂️

I think you're right! Great find Rohan!

@iamtrask @jvmancuso could someone close this issue as it seems to be resolved already?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

robert-wagner picture robert-wagner  ·  4Comments

deevashwer picture deevashwer  ·  4Comments

IonesioJunior picture IonesioJunior  ·  3Comments

beatrizsmg picture beatrizsmg  ·  4Comments

aristizabal95 picture aristizabal95  ·  3Comments