Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make travis cache node_modules to speed up builds #881

Merged
merged 2 commits into from
Oct 15, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this break when you rebuild without cache (or whatever it's called in Travis)? I can't see the button myself.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's find out!

I've nuked the cache and restarted one of the builds

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still works, guess which one I restarted ;-)

2015-10-15 at 21 22

Expand Down