-
-
Notifications
You must be signed in to change notification settings - Fork 770
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #881 from mroderick/travis-cache-node-modules
Make travis cache node_modules to speed up builds
- Loading branch information
Showing
1 changed file
with
4 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|