Skip to content
This repository was archived by the owner on Nov 8, 2024. It is now read-only.

Use newer node version #30

Merged
merged 1 commit into from
Feb 10, 2017
Merged

Use newer node version #30

merged 1 commit into from
Feb 10, 2017

Conversation

honzajavorek
Copy link
Contributor

Soon Dredd won't support node versions 0.10 and 0.12: apiaryio/dredd#716 Those are ancient and officially dead now (not supported by node maintainers anymore). Node setup for Travis CI builds of different languages (Ruby, Python, Perl, PHP, ...) is outdated and uses these dead versions by default. This PR ensures the build will install Dredd with correct node version. The node alias in the nvm install node command points to the latest node version.

The --no-optional flag in Dredd installation command skips C++11 compilation (speeds up the build).

@w-vi w-vi merged commit cd2f56f into master Feb 10, 2017
@w-vi w-vi deleted the honzajavorek/node-version branch February 10, 2017 17:41
- node --version
- npm install --python=python2 -g dredd
- npm install --python=python2 -g dredd --no-optional
Copy link
Member

Choose a reason for hiding this comment

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

I assume the --python=python2 was for Protagonist/Drafter's configure script. Since you've added --no-optional and pure drafter JS would be used, you may be able to remove --python=python2.

@honzajavorek
Copy link
Contributor Author

honzajavorek commented Feb 12, 2017 via email

honzajavorek added a commit that referenced this pull request Feb 13, 2017
The Python version was specified to ensure node-gyp compilation works
(it supports Python 2 only). We use --no-optional now to speed up
the installation on CI, which means no compilation should take place
at all. In that case, specifying the Python version is redundant.

Based on @kylef's comment under #30.
honzajavorek added a commit that referenced this pull request Feb 13, 2017
The Python version was specified to ensure node-gyp compilation works
(it supports Python 2 only). We use --no-optional now to speed up
the installation on CI, which means no compilation should take place
at all. In that case, specifying the Python version is redundant.

Based on @kylef's comment under #30.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants