feat: cache dependencies in ci building

This commit is contained in:
Clark Du 2017-10-19 17:51:48 +08:00
parent f8bc7e2383
commit 0ecdf0622e
No known key found for this signature in database
GPG Key ID: D0E5986AF78B86D9
2 changed files with 8 additions and 0 deletions

View File

@ -2,6 +2,10 @@ language: node_js
node_js:
- "8"
- "6"
cache:
yarn: true
directories:
- node_modules
install:
- yarn install
- yarn run build

View File

@ -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