From fbe243075a665ff6ec00d664eca791fe80d9f23d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= Date: Tue, 11 Oct 2016 22:27:57 -0400 Subject: [PATCH] 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. --- .travis.yml | 2 +- appveyor.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6c8bce0f34..3cad9f9442 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ matrix: cache: directories: - - node_modules + - ~/.npm notifications: email: diff --git a/appveyor.yml b/appveyor.yml index 4e0b2fc84f..e63ba59a4c 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -23,7 +23,7 @@ test_script: # cache npm modules cache: - - node_modules + - '%AppData%/npm-cache' # Don't actually build build: off