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

Not all files are cached #3073

Closed
probonopd opened this issue Dec 31, 2014 · 5 comments
Closed

Not all files are cached #3073

probonopd opened this issue Dec 31, 2014 · 5 comments

Comments

@probonopd
Copy link

I my .travis.yml file I am setting a matrix with 4 different URLs which I would like to cache (SDKs for 4 different platforms); however, it appears that only 1 of the 4 is actually cached.

https://github.com/probonopd/announce/blob/master/.travis.yml

Wouldn't it a better idea to cache downloads on an URL basis, i.e., have a "cached-wget" command that tries to retrieve files from a local (shared for all travis-ci users and projects) cache, and only downloads from the Internet if the cache doesn't return the requested file?

@roidrage
Copy link
Contributor

What you're referring to seems to be more of a proxy cache, isn't it?

As for your caching settings, we really recommend against putting large binary packages into our dependency cache, that will give you little to no speed improvement usually. See our docs. You'll be much better off pulling these binaries directly from S3, which will also circumvent the caching oddities you're seeing.

@roidrage
Copy link
Contributor

Our cache is useful for caching dependencies, e.g. Ruby or PHP libraries, or Maven dependencies, it's not suitable for caching binary packages or SDKs.

@probonopd
Copy link
Author

Isn't a SDK a "build time dependency"? So are you saying travis-ci is not suitable for the type of builds I am trying to do?

@roidrage
Copy link
Contributor

roidrage commented Jan 1, 2015

No, I was saying that our cache isn't suitable for the kind of files you want to store in it.

@probonopd
Copy link
Author

Thank you for the clarification.

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

No branches or pull requests

2 participants