From fcef38263393b5760ed327ebc97d5f384af88f19 Mon Sep 17 00:00:00 2001 From: Mark Lee Date: Thu, 7 Dec 2017 18:35:40 -0800 Subject: [PATCH] chore(tests): cache node_modules in CI --- .appveyor.yml | 3 ++- .travis.yml | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.appveyor.yml b/.appveyor.yml index 1468b6ebf1..acc143445b 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -5,7 +5,7 @@ environment: matrix: - node_installer: yarn cache: -- '%APPDATA%\npm-cache' +- 'node_modules' - '%USERPROFILE%\.electron' branches: only: @@ -16,6 +16,7 @@ install: - npm install -g npm@4 - set PATH=%APPDATA%\npm;%PATH% - npm install +- npm update test_script: - node --version diff --git a/.travis.yml b/.travis.yml index f826157b13..3df331ba6c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,9 @@ os: dist: trusty osx_image: xcode8.3 sudo: required +cache: + directories: + - node_modules services: - docker env: @@ -18,6 +21,9 @@ branches: - master - /^v\d+\.\d+\.\d+/ before_install: if [[ "$NODE_INSTALLER" = "yarn" ]]; then npm install -g yarn@0.23.3; fi +install: +- npm install +- npm update script: ci/script.sh after_success: ci/coverage.sh notifications: