Skip to content

Commit

Permalink
build: cache node_modules on Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Apr 16, 2016
1 parent 9d5aeeb commit 387bb00
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,11 @@ node_js:
- "4.4"
- "5.10"
sudo: false
cache:
directories:
- node_modules
before_install:
# Update Node.js modules
- "test ! -d node_modules || npm prune"
- "test ! -d node_modules || npm rebuild"
script: "npm test"

0 comments on commit 387bb00

Please sign in to comment.