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:
parent
7e39ae045f
commit
6dac7b1897
@ -11,7 +11,7 @@ matrix:
|
|||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- node_modules
|
- ~/.npm
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email:
|
email:
|
||||||
|
@ -23,7 +23,7 @@ test_script:
|
|||||||
|
|
||||||
# cache npm modules
|
# cache npm modules
|
||||||
cache:
|
cache:
|
||||||
- node_modules
|
- '%AppData%/npm-cache'
|
||||||
|
|
||||||
# Don't actually build
|
# Don't actually build
|
||||||
build: off
|
build: off
|
||||||
|
Loading…
Reference in New Issue
Block a user