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

Travis Cache directory does not work for a folder #9814

Closed
gpincheiraa opened this issue Jun 27, 2018 · 3 comments
Closed

Travis Cache directory does not work for a folder #9814

gpincheiraa opened this issue Jun 27, 2018 · 3 comments
Labels

Comments

@gpincheiraa
Copy link

gpincheiraa commented Jun 27, 2018

I have the following configuration for cache directories on the jobs

travis-yml-cache

In this case I want storage a ./dist folder generated for webpack build and use this folder in the next step, but once time that the job finished the folder is not stored as shows the following image:

build-cache-travis

https://travis-ci.org/gpincheiraa/bln-frontend-project1/jobs/397192138

¿Why this folder is not persisted in caché?

Update:

I created a new repository for checking if this not works but it's working!!!

creating dist folder and adding it to caché
https://travis-ci.org/gpincheiraa/travis-cache-webpack/jobs/397422919

check if the folder cached it is available
https://travis-ci.org/gpincheiraa/travis-cache-webpack/jobs/397422920

@grooverdan
Copy link

you can use $HOME/.npm in a cache directory list.

@stale
Copy link

stale bot commented Sep 26, 2018

Thanks for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue in 7 days. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please respond before the issue is closed, or open a new one after. We'll gladly take a look again! You can read more here: https://blog.travis-ci.com/2018-03-09-closing-old-issues

@BanzaiMan
Copy link
Contributor

¿Why this folder is not persisted in caché?

How did you come to this conclusion? If nothing in the dist directory changed during the build, nothing new will be uploaded. If you think it does not, try looking at the content of the directory before the build starts.

Closing this for now. If you have reasons to still believe that it is not, do let us know.

sauloperez added a commit to coopdevs/timeoverflow-provisioning that referenced this issue Nov 13, 2019
This should considerably speed up CI builds and we rarely touch add or
remove vendor roles. If that was the case, Travis will store any
modifications in the cache. I guessed that from docs and a PR:

> Only modifications made to the cached directories from normal pushes
are stored.

source: https://docs.travis-ci.com/user/caching

> If nothing in the dist directory changed during the build, nothing new
will be uploaded.

source:
travis-ci/travis-ci#9814 (comment)
sauloperez added a commit to coopdevs/timeoverflow-provisioning that referenced this issue Nov 14, 2019
This should considerably speed up CI builds and we rarely touch add or
remove vendor roles. If that was the case, Travis will store any
modifications in the cache. I guessed that from docs and a PR:

> Only modifications made to the cached directories from normal pushes
are stored.

source: https://docs.travis-ci.com/user/caching

> If nothing in the dist directory changed during the build, nothing new
will be uploaded.

source:
travis-ci/travis-ci#9814 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants