bleenco / abstruse

Abstruse is a free and open-source CI/CD platform that tests your models and code.
https://ci.abstruse.app
MIT License
938 stars 103 forks source link

[feat]: caching #132

Closed jkuri closed 7 years ago

jkuri commented 7 years ago

Caching directories in builds that are not changed ofter. This will speed up builds significantly. Good example of cached directory is node_modules/.

captn3m0 commented 6 years ago

@jkuri Is it possible to have configurable caching? Not all languages are covered in the defaults, and I'd much rather prefer a dumb /cache mount, which is usable by just setting the cache directory path correctly. (This is how Wercker does it)

For eg: composer config cache-dir $ABSTRUSE_CACHE_DIR works better than hardcoding the path, since the vendor directory might not necessarily be in the repo root.

I like the Travis approach as well: Have some hardcoded paths for default caching support out of the box, but allow cache-mounts.

Edit: Looks like travis approach works?

jkuri commented 6 years ago

sure, you can set cached directories like so:

cache:
  - node_modules/
  - dist/

in your .abstruse.yml configuration, here is an example.