From e603cb0838b005f1c8430bbce4c98b431d9c1ba9 Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Mon, 31 Oct 2016 19:41:27 -0400 Subject: [PATCH] chore: persist a chocolatey cache Appveyor CI builds (#809) Setting a Chocolatey cache and Making sure it gets persisted means that future builds don't have to download every Chocolatey package from the internet every time. Signed-off-by: Juan Cruz Viotti --- appveyor.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/appveyor.yml b/appveyor.yml index 418de011..8fd36540 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -9,17 +9,20 @@ image: Visual Studio 2013 cache: - C:\Users\appveyor\.node-gyp - '%AppData%\npm-cache' + - '%CHOCOLATEY_CACHE%' # what combinations to test environment: global: ELECTRON_NO_ATTACH_CONSOLE: true + CHOCOLATEY_CACHE: '%AppData%\chocolatey-cache' matrix: - nodejs_version: 6.1.0 install: - ps: Install-Product node $env:nodejs_version x64 - npm install -g npm bower rimraf asar + - choco config set cacheLocation %CHOCOLATEY_CACHE% - choco install nsis -version 2.51 - choco install upx - choco install 7zip.commandline