Skip to content

Commit

Permalink
Use CI caches for downloaded files instead of installed ones
Browse files Browse the repository at this point in the history
This allows for a more meaningful build: if a newer version of a sub-package breaks,
builds would still pass as it uses the cached version. This uses a cache for downloaded packages instead.

I am expecting this to slow down a little bit the builds (but we are OK overall)
but be more accurate in practice.

See https://docs.npmjs.com/cli/cache#configuration and https://docs.npmjs.com/files/folders#node-modules.
  • Loading branch information
astorije committed Oct 12, 2016
1 parent 7e39ae0 commit 75bd089
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -11,7 +11,7 @@ matrix:

cache:
directories:
- node_modules
- ~/.npm

notifications:
email:
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Expand Up @@ -23,7 +23,7 @@ test_script:

# cache npm modules
cache:
- node_modules
- %AppData%/npm-cache

# Don't actually build
build: off

0 comments on commit 75bd089

Please sign in to comment.