Skip to content
Permalink
Browse files

chore(tests): cache node_modules in CI

  • Loading branch information
malept committed Dec 8, 2017
1 parent f2b5c4a commit fcef38263393b5760ed327ebc97d5f384af88f19
Showing with 8 additions and 1 deletion.
  1. +2 −1 .appveyor.yml
  2. +6 −0 .travis.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
@@ -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:

0 comments on commit fcef382

Please sign in to comment.
You can’t perform that action at this time.