Commit Graph

797 Commits (afba4e08fd18c73907025850239a0adf4104c611)

Author SHA1 Message Date
Jordan Harband afba4e08fd Temporarily disable ksh tests, per #574 2014-11-15 11:02:00 -06:00
Jordan Harband ce82109229 Merge pull request #567 from xcambar/nvm_source
[install script] Refactors NVM_SOURCE
2014-11-15 10:23:40 -06:00
Xavier Cambar 516e553093 Refactors NVM_SOURCE 2014-11-06 22:35:24 +01:00
Jordan Harband e28a257f23 Merge pull request #573 from mklement0/amend_travis_yml
.travis.yml now obtains latest urchin version from the npm registry
2014-11-05 21:54:53 -08:00
Michael Klement 2d8adac785 .travis.yml now obtains latest urchin version from the npm registry instead of directly from GitHub 2014-11-05 23:22:55 -05:00
Jordan Harband bf4bf008ac Update `urchin` 2014-11-05 13:58:30 -08:00
Jordan Harband 5f5eb47f14 v0.18.0 2014-11-05 10:59:59 -08:00
Jordan Harband d09b84de3c Ensure that a system has `manpath` before invoking it.
Closes #531, fixes #557.
2014-11-02 13:54:54 -08:00
Jordan Harband 4b6075e29b Merge pull request #568 from mklement0/fix_make_file
Fixed Urchin invocation problem in zsh and dash.  Makefile "future-proofed" to take advantage of true cross-shell testing with Urchin, once available.
2014-11-02 13:43:28 -08:00
Michael Klement 781f72c9c8 Makefile now makes use of the `-s <shell>` option for Urchin, IF it is available, for true cross-shell testing.
Conversely, a warning is issued if it is missing, because that implies that no actual cross-shell testing will take place.

Also, the shell command that determines the set of available test suites is now POSIX-compliant.
2014-11-01 02:18:10 -04:00
Jordan Harband 6ec62fcc79 Merge pull request #564 from xcambar/nvm_detect_profile
Tests for PROFILE detection
2014-10-30 10:24:53 -07:00
Jordan Harband fc17aaafb1 Merge pull request #541 from mklement0/fix_make_file
Makefile enhanced to error out with instructions if invoked without a target.
2014-10-30 10:23:37 -07:00
Michael Klement ac912afc4c Many makefile enhancements (support for direct invocation, instructions if invoked without target, release mechanism improved), package.json scripts now invoke the makefile.
- Using `npm test` and `npm run …` scripts defined in package.json now invokes the makefile and runs the test with the same shell that npm was invoked from.
- The makefile can now be invoked directly - supporting utilities from locally installed npm packages are automatically discovered.
- Invoking the makefile without a target errors out with a hint.
- Shell-specific test targets are now named 'test-<shell>'.
- Both 'test-<shell>' targets and the all-shells 'test' target now run all test suites by default.
- On `make TAG=<new-version> release` there must be no uncommitted changes. '<new-version>' can now also be one of the following increment specifiers: 'patch', 'minor', 'major'.
- It is ensure that <new-version>, if not an increment specifier, is a valid semver version number that is higher than the previous release's.
- The previous release tag is now located with a pattern so as to exclude tags that aren't version numbers.
- Switched from lightweight to annotated tags for releases.
2014-10-30 00:13:22 -04:00
Xavier Cambar b9f15b0ab0 Tests for PROFILE detection 2014-10-29 18:50:04 +01:00
Jordan Harband d30c0fe146 Cleaning up install_script tests. 2014-10-28 13:47:21 -07:00
Jordan Harband 21534ec0c9 Merge pull request #556 from xcambar/install_function_for_testing
Add install_script test suite; wrap installation in a function, for testing.
2014-10-28 13:42:59 -07:00
Xavier Cambar 3cdec8e875 Testable install script
* wraps main code into a function
* EnvVar-based install start
* Clean environment after install
2014-10-28 11:44:01 +01:00
Jordan Harband cec1c38a84 Move sourcing tests to a separate test suite. 2014-10-26 23:40:32 -07:00
Jordan Harband ad0a5cd8c7 Merge pull request #560 from brock/pwd
use `command -p pwd` to use the system default pwd
2014-10-26 01:23:41 -07:00
Brock Angelo 1c9a5ba2d8 use slash pwd instead of command 2014-10-25 22:19:27 -05:00
Brock Angelo fd1f2cdf66 use `command -p pwd` to use the system default pwd 2014-10-25 13:55:20 -05:00
Jordan Harband 2d529cc8b7 Prevent attempts to `nvm use` a circular reference. 2014-10-22 18:15:21 -07:00
Jordan Harband 9b91734f0b Show "∞" when there's a circular alias reference. 2014-10-22 18:15:21 -07:00
Jordan Harband 0f5997f754 Clean up from some more tests 2014-10-22 18:15:21 -07:00
Jordan Harband 7a339bdd3c Adding nvm_resolve_alias 2014-10-22 01:30:40 -07:00
Jordan Harband 08aa09e664 Prevent test pollution. 2014-10-22 01:26:39 -07:00
Jordan Harband 8284cd0f81 Ensuring that there's a stable and unstable version "available" for this test. 2014-10-21 01:02:59 -07:00
Jordan Harband e421a0dc5f Ensure nvm follows redirects to nodejs.org 2014-10-20 16:02:46 -07:00
Jordan Harband 601490ac1d Merge tag 'v0.17.3' 2014-10-20 15:50:47 -07:00
Jordan Harband 4748b3a236 v0.17.3 2014-10-20 15:48:49 -07:00
Jordan Harband 2a61569881 http://nodejs.org/dist now redirects to https://nodejs.org/dist 2014-10-20 15:48:35 -07:00
Jordan Harband a7b1f93592 README cleanup: Use the Oxford comma, properly lowercase commands 2014-10-19 19:26:17 -07:00
Jordan Harband ca89cceb99 Default $NVM_SYMLINK_CURRENT to off (create a "current" symlink on `use`).
Fixes #499.
2014-10-14 18:14:12 -07:00
Jordan Harband 7b6e06e556 Add tests for "`nvm use default` on source" behavior. 2014-10-13 23:55:58 -07:00
Jordan Harband 370dfcab7c Merge pull request #548 from BanzaiMan/ha-bug-npm-update
Fix npm update code
2014-10-12 16:35:13 -07:00
Hiro Asari 44d5776110 Fix npm update code
https://npmjs.org/install.sh redirects to https://www.npmjs.org/install.sh
so this code would fail if it ever npm was absent when we get here.
2014-10-12 12:28:38 -04:00
Jordan Harband d49443e1fb Properly handle nvm_print_implicit_alias splitting in zsh.
Hopefully fixes #546.
2014-10-11 00:41:16 -04:00
Jordan Harband e99645f402 Don't list uninstalled implicit aliases 2014-10-10 23:46:25 -04:00
Jordan Harband 8f76b35370 Fix `nvm alias` tests to have both stable and unstable mocks. 2014-10-10 23:46:25 -04:00
Jordan Harband a2633e5980 Fixing "nvm alias" output redirection. 2014-10-09 00:19:14 -07:00
Jordan Harband 6c89e96f67 Ensure that we don't try to uninstall the current version of node in test teardowns. 2014-10-09 00:19:14 -07:00
Jordan Harband 1ee708b79b Fix an output redirection error. 2014-10-06 16:18:21 -07:00
Jordan Harband 035334fd34 Merge pull request #544 from coreybutler/patch-1
Fixed links
2014-10-05 12:02:30 -07:00
Corey Butler 2edc86d574 Fixed links
The links were relative to github.com/creationix/nvm/master instead of the intended sites.
2014-10-05 10:15:10 -05:00
Jordan Harband 9d23f609ad Add note about Windows options. Related to #284. 2014-10-04 16:42:29 -07:00
Jordan Harband 9d9cfdc2c8 Two spaces after a period is incorrect. 2014-10-04 16:38:56 -07:00
Jordan Harband 1931f7f3f8 Remove '-e' option from installation tests, in favor of explicit failures. 2014-10-03 03:03:48 -07:00
Jordan Harband 2f2c6f0727 Use nvm_alias in nvm_ls. 2014-10-02 17:19:21 -07:00
Jordan Harband 0eef553a88 Use `-f` instead of `-e` in nvm_alias. 2014-10-02 16:06:09 -07:00
Jordan Harband 5135577a3c Ensure `nvm run` has the same semantics as `nvm use` 2014-10-01 01:46:46 -07:00