Use CI caches for downloaded files instead of installed ones

This allows for a more meaningful build: if a newer version of a sub-package breaks,
builds would still pass as it uses the cached version. This uses a cache for downloaded packages instead.

I am expecting this to slow down a little bit the builds (but we are OK overall)
but be more accurate in practice.

See https://docs.npmjs.com/cli/cache#configuration and https://docs.npmjs.com/files/folders#node-modules.
This commit is contained in:
Jérémie Astori 2016-10-11 22:27:57 -04:00
parent 7e39ae045f
commit 6dac7b1897
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ matrix:
cache:
directories:
- node_modules
- ~/.npm
notifications:
email:

View File

@ -23,7 +23,7 @@ test_script:
# cache npm modules
cache:
- node_modules
- '%AppData%/npm-cache'
# Don't actually build
build: off