From 4a1f1787bded9c4d788e2ef9515a265a04e03ef7 Mon Sep 17 00:00:00 2001 From: Mark Lee Date: Wed, 15 Nov 2017 20:15:39 -0800 Subject: [PATCH] Cache node_modules instead of the NPM cache --- .travis.yml | 5 ++++- test/ci/appveyor.yml | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3fb5bbb3..537fc1d2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,9 +16,12 @@ matrix: cache: - apt: true - directories: - - "$HOME/.npm" + - "node_modules" - "$HOME/.electron" before_install: test/ci/before_install.sh +install: +- npm install +- npm update after_success: npm run coveralls branches: only: diff --git a/test/ci/appveyor.yml b/test/ci/appveyor.yml index 4d3114da..da8df386 100644 --- a/test/ci/appveyor.yml +++ b/test/ci/appveyor.yml @@ -11,7 +11,7 @@ matrix: allow_failures: - nodejs_version: "9" cache: -- '%APPDATA%\npm-cache' +- 'node_modules' - '%USERPROFILE%\.electron' branches: only: @@ -22,6 +22,7 @@ install: - npm install -g npm@4 - set PATH=%APPDATA%\npm;%PATH% - npm install +- npm update test_script: - node --version