-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
Vagrant #578
Vagrant #578
Conversation
[Vagrant](https://www.vagrantup.com/) allows us to test all changes in a virtual machine. We can "vagrant up" into a clean environment and "vagrant destroy" whenever
This method copies the folder containing install.sh (normally also containing the repo) to $NVM_DIR - unless of course the install.sh being executed is in $NVM_DIR (where nvm was installed) This is useful for vagrant to test local changes instead of pulling them from git and thus testing what's on the server and not local changes
@@ -109,6 +109,18 @@ nvm_do_install() { | |||
exit 1 | |||
fi | |||
install_nvm_as_script | |||
elif [ "~$METHOD" = "~copy" ]; then |
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.
The "copy" functionality is separate from the vagrant stuff - can you split this into two separate PRs, please? The vagrant PR will need a lot of time for me to evaluate it first, and I'd like more context on the usefulness of the "copy" install method, which would be best discussed in a dedicated thread :-)
This reverts commit 6acce52.
When vagrant is provisioned it will choose an automatic method from now (which means git or script with the newest version of nvm from the web)
Make is needed for the tests to run The tests don't run with with either as `npm test` uses the "shell" package which tries to execute shell commands in its parent shell. If the shell is fish..well, it doesn't work.
@LoveIsGrief do you have any interest in completing this PR? |
Nah, it's cool. |
Hi,
I included vagrant to the repo for testing in an isolated environment. I'm not sure what I should write to test this since all it does is "provision" a virtual machine. Hopefully you'll find it useful.
Cheers