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

Rewrite installation code path #1204

Merged
merged 17 commits into from
Sep 3, 2016
Merged

Rewrite installation code path #1204

merged 17 commits into from
Sep 3, 2016

Conversation

ljharb
Copy link
Member

@ljharb ljharb commented Aug 22, 2016

This PR rewrites the entire installation code path for nvm. This allows:

  • io.js installation from source
  • node v4+ installation from source
  • downloaded archives of binary and source downloads will now be cached and reused when checksums match
  • nvm cache commands to manage cached archives
  • tests now run with an updated gcc

installation_iojs source tests are disabled, because they take too long in travis-ci to complete. I find this acceptable because the existing "install from source" code path is tested, and enough code is now shared that the risk is quite low.

Fixes #1188. Fixes #1193. Fixes #700. Obviates #1192. Unblocks #1053 & #779.

@ljharb ljharb added installing node Issues with installing node/io.js versions. feature requests I want a new feature in nvm! testing Stuff related to testing nvm itself. io.js This relates to https://iojs.org/ installing node: checksums This relates to checksum checking of downloaded node archives. performance This relates to anything regarding the speed of using nvm. labels Aug 22, 2016
@ljharb ljharb added this to the v1.0.0 milestone Aug 22, 2016
@ljharb ljharb self-assigned this Aug 22, 2016
@@ -12,8 +22,11 @@ install:
- chmod +x /tmp/urchin/package/urchin
- '[ -z "$WITHOUT_CURL" ] || sudo apt-get remove curl -y'
script:
- export CXX=g++-4.8
- export CC=gcc-4.8
Copy link
Contributor

Choose a reason for hiding this comment

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

You can probably use env here.

Copy link
Member Author

Choose a reason for hiding this comment

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

Then I'd have to define it once for each matrix item, instead of once for the entire build.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, gotcha.

Copy link

@SimenB SimenB Sep 3, 2016

Choose a reason for hiding this comment

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

env:
  global:
    - CXX=g++-4.8
    - CC=gcc-4.8

Works as well.

https://docs.travis-ci.com/user/environment-variables/#Global-Variables

Copy link
Member Author

Choose a reason for hiding this comment

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

Wow, thanks, that's great. I'll use that.

@ljharb ljharb mentioned this pull request Aug 23, 2016
@ljharb ljharb force-pushed the iojs_source branch 7 times, most recently from e9ac951 to dcfa63f Compare August 25, 2016 17:19
 - consolidate `nvm_install_merged_node_binary` with `nvm_install_node_binary`
 - add `nvm_get_download_slug`, `nvm_download_artifact`
 - `nvm uninstall` no longer removes artifacts
 - `nvm uninstall` no longer removes source artifacts
…g, io.js too.

 - `nvm_get_checksum` now accepts 5 args (from 3): flavor (node/iojs), type (binary/source), version, slug, compression (xz/gz)
 - `nvm_install_binary` accepts 3 args (from 2): flavor (node/iojs), kind (std), version
 - remove `nvm_install_iojs_binary`
 - consolidate `nvm_install_iojs_source` and `nvm_install_node_source` into `nvm_install_source`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature requests I want a new feature in nvm! installing node: checksums This relates to checksum checking of downloaded node archives. installing node Issues with installing node/io.js versions. io.js This relates to https://iojs.org/ performance This relates to anything regarding the speed of using nvm. testing Stuff related to testing nvm itself.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants