From 0ecdf0622ea25647b71687e10bd40fb0a8e31494 Mon Sep 17 00:00:00 2001 From: Clark Du Date: Thu, 19 Oct 2017 17:51:48 +0800 Subject: [PATCH] feat: cache dependencies in ci building --- .travis.yml | 4 ++++ appveyor.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.travis.yml b/.travis.yml index a833fdf3d6..a92abde5dc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,10 @@ language: node_js node_js: - "8" - "6" +cache: + yarn: true + directories: + - node_modules install: - yarn install - yarn run build diff --git a/appveyor.yml b/appveyor.yml index 5c62e6be35..f001912793 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -4,6 +4,10 @@ environment: - nodejs_version: "6" - nodejs_version: "8" +cache: + - "%LOCALAPPDATA%\\Yarn" + - node_modules + # Install scripts. (runs after repo cloning) install: # Get the latest stable version of Node.js or io.js