From 76b6bdfd067a2a03aebbf45fbd400275666c24aa Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Fri, 14 Jul 2017 11:48:45 -0400 Subject: [PATCH] chore: cache ~/.pkg-cache in Travis CI and Appveyor CI (#1598) Looks like pkg downloads node binaries from GitHub Releases, and GitHub may impose a rate limiting if we download too many things from them in a short period of time (likely to happen when there are many concurrent PRs). In order to mitigate this issue, this commit adds `$HOME/.pkg-cache`, the directory where pkg stores node binaries, to the CI services cache. See: https://github.com/resin-io/etcher/pull/1594 Signed-off-by: Juan Cruz Viotti --- .travis.yml | 1 + appveyor.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index efc80695..9f03c2b8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,6 +15,7 @@ cache: - $HOME/.npm/_prebuilds - $HOME/Library/Caches/electron - $HOME/Library/Caches/electron-builder + - $HOME/.pkg-cache - node_modules services: diff --git a/appveyor.yml b/appveyor.yml index 67cdb17c..ffe257cc 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -8,6 +8,7 @@ cache: - '%LOCALAPPDATA%\electron\Cache' - '%LOCALAPPDATA%\electron-builder\cache' - '%AppData%\npm-cache' + - '%USERPROFILE%\.pkg-cache' - node_modules -> npm-shrinkwrap.json - C:\ProgramData\chocolatey\bin -> appveyor.yml - C:\ProgramData\chocolatey\lib -> appveyor.yml