Skip to content

Commit

Permalink
chore(tests): cache node_modules in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
malept committed Dec 17, 2017
1 parent f2b5c4a commit fcef382
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ environment:
matrix:
- node_installer: yarn
cache:
- '%APPDATA%\npm-cache'
- 'node_modules'
- '%USERPROFILE%\.electron'
branches:
only:
Expand All @@ -16,6 +16,7 @@ install:
- npm install -g npm@4
- set PATH=%APPDATA%\npm;%PATH%
- npm install
- npm update

test_script:
- node --version
Expand Down
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ os:
dist: trusty
osx_image: xcode8.3
sudo: required
cache:
directories:
- node_modules
services:
- docker
env:
Expand All @@ -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:
Expand Down

0 comments on commit fcef382

Please sign in to comment.