-
-
Notifications
You must be signed in to change notification settings - Fork 61
Safely update npm on Travis #42
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
Conversation
the zuul-ngrok installation failure is because the version of npm that ships with 0.8 doesn't support ^4.0.0 caret syntax. you can replace the https://github.com/browserify/browserify/blob/7ad39ce835b6b3aa5718af04c8f57a5aeef6c636/.travis.yml e; yes, we'll want to switch to airtap and run the browser tests from a recent node version instead :D |
I've tried
It's probably still a good idea to keep Also, maybe you can clarify this: It's not quite clear to me why this module is tested so extensively against old Node.js versions. Is it expected that anyone would actually use this in Node.js as opposed to the standard library Even if it is, do we need to support Node.js versions this old? Surely the main targets should be browser versions. |
Is there a plan what Node.js versions should be supported? I believe the module requires a major bump if it's updated to the current |
right sorry, i meant to link to the entire before_install section: before_install:
# Old npm certs are untrusted https://github.com/npm/npm/issues/20191
- 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ] || [ "${TRAVIS_NODE_VERSION}" = "0.8" ]; then export NPM_CONFIG_STRICT_SSL=false; fi'
- 'nvm install-latest-npm' generally for these modules we aim for maximum compatibility. originally, this module and things like |
@goto-bus-stop That doesn't seem to help. All that extra step is doing is setting |
oh yikes. so it's just because zuul has a git dependency. previously when really old versions of node failed that change fixed it, but this time it's caused by something different 😓 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, the remaining failures should be fixed by switching to airtap later.
Cool, let me just remove the redundant |
This reverts commit cb25482.
This resolves most of the failing tests on Travis.
Resolves #33
On Travis we update
npm
before running any tests. The latest versions ofnpm
use syntax that isn't available on the Node.js versions we test against so it kills the Travis instance before the tests even begin:Just removing the
npm
updates form.travis.yml
resolves this.There are two remaining tests that still fail, however these are due to
zuul
andzuul-ngrok
no longer running on these old Node.js versions.zuul
hasn't been updated in about a year and looks to have been replaced byairtap
which is actively maintained.