Skip to content

Commit

Permalink
build: cache node_modules on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Sep 9, 2016
1 parent d287c3b commit 26e361c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ node_js:
- "5.11"
- "6.5"
sudo: false
cache:
directories:
- node_modules
before_install:
- "test ! -d node_modules || npm prune"
- "test ! -d node_modules || npm rebuild"
script:
- "npm run-script test-travis"
after_script:
Expand Down

0 comments on commit 26e361c

Please sign in to comment.