michaelKurowski / lokim2

An internet messenger that cares about privacy.
4 stars 0 forks source link

Cache results of downloading cypress dependencies on CI #106

Open michaelKurowski opened 6 years ago

michaelKurowski commented 6 years ago

Cypress (our E2E testing framework), requires OS dependencies, that doesn't come up with CircleCI by default. Because of that we download every time when the CI job is running. It significantly prolongs the time for how long the CI job is running for new commits. We should cache these dependencies, so they'll be retrieved from cache every time, instead of being installed again and again.

User story

  1. A developer push a new commit to github.
  2. A CircleCI job is starting for his commit.
  3. CircleCI automatically retrieves Cypress dependencies which were downloaded during previous jobs from cache, instead of downloading them from the internet and installing.

Suggestion for solution: https://unix.stackexchange.com/questions/408346/how-to-download-package-not-install-it-with-apt-get-command