Commit Graph

92 Commits

Author SHA1 Message Date
Luke Childs
5fa5c89b54 Test nvm is loaded correctly with NVM_LAZY_LOAD 2016-12-12 18:35:05 +07:00
Luke Childs
18260a543c Completely nuke node
`brew uninstall node` seems to leave behind npm
2016-12-12 17:49:40 +07:00
Luke Childs
d8ccfa0efa Test global modules are loaded correctly with NVM_LAZY_LOAD 2016-12-12 17:29:38 +07:00
Luke Childs
0618f5825a Improve node binary checks in tests 2016-12-10 17:19:18 +07:00
Luke Childs
385f4afef9 Check node can be loaded manually in NVM_NO_USE test 2016-12-10 16:55:44 +07:00
Luke Childs
070f590f43 Add test info to readme 2016-11-17 00:42:16 +00:00
Luke Childs
feeb4bf253 Uninstall brew node on Travis osx image 2016-11-12 09:43:13 +00:00
Luke Childs
ef0efede63 Deactivate default Travis nvm 2016-11-12 09:36:11 +00:00
Luke Childs
d2a0d059f7 Test NVM_LAZY_LOAD option 2016-11-12 07:47:53 +00:00
Luke Childs
cd48b14dc6 Test NVM_NO_USE option 2016-10-25 10:28:14 +01:00
Luke Childs
4337547a5b Test zsh-nvm loads node 2016-10-25 10:28:14 +01:00
Luke Childs
30b2ca6d16 Move test NVM_DIR inside test folder 2016-10-25 10:28:14 +01:00
Luke Childs
3ce497b489 Setup options test dir 2016-10-25 10:28:14 +01:00
Luke Childs
bf41358f61 Ignore .urchin_stdout files 2016-10-25 10:28:14 +01:00
Luke Childs
1134d3f995 Add sh shebang to tests so we get syntax highlighting 2016-10-25 10:28:14 +01:00
Luke Childs
3400f34019 Test nvm upgrade 2016-10-25 10:28:14 +01:00
Luke Childs
b332b507a8 Ignore .urchin.log files anywhere
They will be created inside each test subdir if you run just that subdirs tests. May as well ignore all .urchin.log files so we don't accidentally get them committed.
2016-10-25 10:28:14 +01:00
Luke Childs
ffc5ef477d Test nvm revert 2016-10-25 10:28:13 +01:00
Luke Childs
d9750f16a2 Setup wrapper commands tests 2016-10-25 10:28:13 +01:00
Luke Childs
ba7477f5bb Test zsh-nvm wraps nvm 2016-10-25 10:28:13 +01:00
Luke Childs
2eae5bdb6a Test zsh-nvm loads nvm 2016-10-25 10:28:13 +01:00
Luke Childs
7246598a9f Don't load/install nvm in tests that don't need to 2016-10-25 10:28:13 +01:00
Luke Childs
be4db872ed Add ZSH_NVM_NO_LOAD option
If ZSH_NVM_NO_LOAD is set to true then zsh-nvm won't actually do anything after setting up environment variables and functions. This is usefull for unit tests and debugging.
2016-10-25 10:28:13 +01:00
Luke Childs
f8e0c4c5de Test zsh-nvm doesn't overwrite nvm installs 2016-10-25 10:28:13 +01:00
Luke Childs
41f68d7f1e Test zsh-nvm installs nvm 2016-10-25 10:28:13 +01:00
Luke Childs
4a750fb6c4 Remove nvm after every test
This ensures we get a fresh nvm install for every test
2016-10-25 10:28:13 +01:00
Luke Childs
7754936556 Use repo dir for NVM_DIR so we don't mess with global nvm installations 2016-10-25 10:28:13 +01:00
Luke Childs
eba3a816c4 Test set NVM_DIR if not exist 2016-10-25 10:28:13 +01:00
Luke Childs
ba6faa1b90 Also run Travis tests on OS X 2016-10-25 10:28:12 +01:00
Luke Childs
daf80c39cc Integrate with Travis 2016-10-25 10:28:12 +01:00
Luke Childs
4bffd53da4 Setup urchin tests with test for loading 2016-10-25 10:28:12 +01:00
Luke Childs
aa1fccff4b Don't set lazy loaders that conflict with existing globals 2016-10-25 10:26:33 +01:00
Luke Childs
de3c3d7826 Add LICENSE file 2016-10-16 20:07:34 +01:00
Luke Childs
6e2fc22ff3 Document NVM_NO_USE option 2016-10-04 20:51:15 +01:00
Luke Childs
e379610cb9 Make lazy loading compatible with no use option 2016-10-01 13:54:44 +01:00
Luke Childs
e2e47a8c21 Add NVM_NO_USE option 2016-10-01 13:54:36 +01:00
Luke Childs
ce7bc2a0a2 Wrap binary path output in quotes 2016-09-27 22:02:49 +01:00
Luke Childs
007fd93fd7 Make sure we have binaries before trying to format them
Otherwise basename spits out errors #8
2016-09-27 21:09:12 +01:00
Vadim Kazakov
620000bab0 separate array declaration from assignment (#7)
Fixes `bad pattern` error on old versions of zsh
2016-08-31 19:13:34 +01:00
Sven Boekhoff
bd213dd075 Specify where to add the plugin in 'Oh My ZSH!' installation (#5) 2016-08-30 10:17:13 +01:00
Luke Childs
1be9149af6 Set max-args to 1 on xargs
Otherwise it misses binaries (#4)
2016-08-29 12:41:50 +01:00
Luke Childs
49f23771d3 Use echo to list glob matches rather than ls
ls falls back to current dir if there are no glob matches
i.e right after install
2016-08-29 11:52:57 +01:00
Luke Childs
9bc96c23ff Make source nvm command example identical to internal one 2016-08-28 14:51:33 +01:00
Luke Childs
bbbb52a667 Make source nvm command clearer 2016-08-28 14:45:25 +01:00
Luke Childs
8709621973 Allow nullglobs when looking for binaries 2016-08-28 14:00:30 +01:00
Luke Childs
eef332636f Add lazy loading support to node <0.12 2016-08-27 20:27:56 +01:00
Luke Childs
1c6d8dd15e Refactor lazy loading 2016-08-27 20:23:44 +01:00
Luke Childs
2a9ee9e10f Use NVM_DIR for lazy loading binary check 2016-08-27 13:28:23 +01:00
Luke Childs
9ebbf2f792 Use "%" char for shell prompt examples 2016-08-27 11:24:03 +01:00
Luke Childs
2e41031f16 Reword lazy loading section slightly 2016-08-27 11:22:01 +01:00