mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-19 01:06:36 +00:00
chore: cache chocolatey installs as recommended by Appveyor (#915)
We tried to save the Chocolatey cache in a previous PR, but it looks
like its not working properly. This PR implements the "correct" way to
cache Chocolatey installs, as recommended in Appveyor forums.
The arrows mean that the cache is invalidated if the file in the right
side (`appveyor.yml`) in this case, is changed.
See: http://help.appveyor.com/discussions/suggestions/592-speeding-up-chocolatey-downloads-and-installs
See: e603cb0838
Signed-off-by: Juan Cruz Viotti <jviotti@openmailbox.org>
This commit is contained in:
parent
a8116250d2
commit
7f79384b71
@ -9,20 +9,20 @@ image: Visual Studio 2013
|
|||||||
cache:
|
cache:
|
||||||
- C:\Users\appveyor\.node-gyp
|
- C:\Users\appveyor\.node-gyp
|
||||||
- '%AppData%\npm-cache'
|
- '%AppData%\npm-cache'
|
||||||
- '%CHOCOLATEY_CACHE%'
|
- C:\ProgramData\chocolatey\bin -> appveyor.yml
|
||||||
|
- C:\ProgramData\chocolatey\lib -> appveyor.yml
|
||||||
|
- C:\Users\appveyor\AppData\Local\Temp\chocolatey -> appveyor.yml
|
||||||
|
|
||||||
# what combinations to test
|
# what combinations to test
|
||||||
environment:
|
environment:
|
||||||
global:
|
global:
|
||||||
ELECTRON_NO_ATTACH_CONSOLE: true
|
ELECTRON_NO_ATTACH_CONSOLE: true
|
||||||
CHOCOLATEY_CACHE: '%AppData%\chocolatey-cache'
|
|
||||||
matrix:
|
matrix:
|
||||||
- nodejs_version: 6.1.0
|
- nodejs_version: 6.1.0
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- ps: Install-Product node $env:nodejs_version x64
|
- ps: Install-Product node $env:nodejs_version x64
|
||||||
- npm install -g npm bower rimraf asar
|
- npm install -g npm bower rimraf asar
|
||||||
- choco config set cacheLocation %CHOCOLATEY_CACHE%
|
|
||||||
- choco install nsis -version 2.51
|
- choco install nsis -version 2.51
|
||||||
- choco install upx
|
- choco install upx
|
||||||
- choco install 7zip.commandline
|
- choco install 7zip.commandline
|
||||||
|
Loading…
x
Reference in New Issue
Block a user