Invalidate cache and use appveyor-retry with npm

Return cache but invalidate it when needed

Add appveyor-retry

Remove spaces
This commit is contained in:
IlyaFinkelshteyn 2016-11-21 19:02:56 -08:00 committed by IlyaFinkelshteyn
parent adf93f9fad
commit 8d31a0b312

View file

@ -12,7 +12,7 @@ environment:
install: install:
- ps: Install-Product node $env:nodejs_version - ps: Install-Product node $env:nodejs_version
- npm install - appveyor-retry npm install
- npm install mocha-appveyor-reporter - npm install mocha-appveyor-reporter
- echo --reporter mocha-appveyor-reporter >> test/mocha.opts - echo --reporter mocha-appveyor-reporter >> test/mocha.opts
@ -21,5 +21,9 @@ test_script:
- npm --version - npm --version
- npm test - npm test
# cache npm modules
cache:
- '%AppData%\npm-cache -> package.json'
# Don't actually build # Don't actually build
build: off build: off