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 <jviotti@openmailbox.org>
This commit is contained in:
Juan Cruz Viotti 2016-10-31 19:41:27 -04:00 committed by GitHub
parent 45dac58e2a
commit e603cb0838

View File

@ -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