Skip to content

Commit

Permalink
Merge pull request #755 from electron-userland/better-ci-caching
Browse files Browse the repository at this point in the history
Cache node_modules instead of the NPM cache
  • Loading branch information
malept committed Nov 16, 2017
2 parents e746ef5 + 4a1f178 commit 1975ee8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Expand Up @@ -16,9 +16,12 @@ matrix:
cache:
- apt: true
- directories:
- "$HOME/.npm"
- "node_modules"
- "$HOME/.electron"
before_install: test/ci/before_install.sh
install:
- npm install
- npm update
after_success: npm run coveralls
branches:
only:
Expand Down
3 changes: 2 additions & 1 deletion test/ci/appveyor.yml
Expand Up @@ -11,7 +11,7 @@ matrix:
allow_failures:
- nodejs_version: "9"
cache:
- '%APPDATA%\npm-cache'
- 'node_modules'
- '%USERPROFILE%\.electron'
branches:
only:
Expand All @@ -22,6 +22,7 @@ install:
- npm install -g npm@4
- set PATH=%APPDATA%\npm;%PATH%
- npm install
- npm update

test_script:
- node --version
Expand Down

0 comments on commit 1975ee8

Please sign in to comment.