Skip to content

Commit

Permalink
Merge pull request #881 from mroderick/travis-cache-node-modules
Browse files Browse the repository at this point in the history
Make travis cache node_modules to speed up builds
  • Loading branch information
mroderick committed Oct 15, 2015
2 parents 6de2994 + 9ee782e commit fe183e8
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,14 @@ node_js:

sudo: false

cache:
directories:
- node_modules

before_install:
- npm config set strict-ssl false
# use a more modern npm than ships with 0.8
- 'if [ "x$TRAVIS_NODE_VERSION" = "x0.8" ]; then npm install -g [email protected]; fi'
# Workaround for intermittent build failures
# install buster separately from `npm install`, as it uses the C compiler, which might cause the
# npm ERR! cb() never called!
# errror to appear, causing the builds to fail
#
# See this discussion: https://github.com/npm/npm/issues/7014
- npm install [email protected]

before_script:
# we only need to run eslint once per build, so let's conserve a few resources
Expand Down

0 comments on commit fe183e8

Please sign in to comment.