We’re trying to speed up our build pipeline. Currently I’m playing around in my private fork, but there shouldn’t be a difference to the open source derivate.
This is one of the builds, almost finished, just need to get that Cypress binary cache fixed.
Currently we’re building our monorepo once and reuse in all of the stages, which is way faster then building and downloading eg 5 times (even when sometimes only documentation binaries are required, it’s still faster using the cached stuff).
cache: directories: - $TRAVIS_BUILD_DIR - /home/travis/.cache/Cypress
What I recognized is that it now - when using $TRAVIS_BUILD_DIR , it also caches .npm/_logs/ folder, which triggers an archive update after every build in the last 5 steps - this would not be necessary.
I would like to somehow only cache the project folder, with everything included (also node_modules and dot files), additionally also the Cypress binary from the travis cache. This does not seem to get cached, alltough I added the second cache dir.
Maybe someone can give me a hint on how to improve or what are the best practices cache-wise.