diff options
author | Rick van de Loo <rickvandeloo@gmail.com> | 2014-07-29 10:50:00 +0000 |
---|---|---|
committer | Rick van de Loo <rickvandeloo@gmail.com> | 2014-07-29 10:50:00 +0000 |
commit | 5a2ed80c9b992b262f60369c990653c13e196e3d (patch) | |
tree | edd3e88147268778e04628e2ba08edb8b992ff4e | |
parent | 7acbe883827017cc6b02d8202781b7753aaba701 (diff) | |
download | git-hours-5a2ed80c9b992b262f60369c990653c13e196e3d.zip git-hours-5a2ed80c9b992b262f60369c990653c13e196e3d.tar.gz git-hours-5a2ed80c9b992b262f60369c990653c13e196e3d.tar.bz2 |
Vagrantfile for setting up an environment
git clone https://github.com/user/git-hours && vagrant up
is now enough to set up a testing environment in a vm.
no more need for contributors to hassle with dependencies and
installing things that are required to run this program.
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | Vagrantfile | 10 |
2 files changed, 13 insertions, 0 deletions
@@ -26,3 +26,6 @@ node_modules # OS X .DS_Store + +# Vagrant directory +.vagrant diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 0000000..fe3d708 --- /dev/null +++ b/Vagrantfile @@ -0,0 +1,10 @@ +Vagrant.configure("2") do |config| + config.vm.box = "precise64" + config.vm.box_url = 'http://files.vagrantup.com/precise64.box' + config.vm.hostname = "git-hours" + config.vm.provision :shell, :inline => "apt-get -y update && sudo apt-get -y install git python-software-properties python g++ make && add-apt-repository -y ppa:chris-lea/node.js" + config.vm.provision :shell, :inline => "apt-get -y update && apt-get -y install nodejs" + config.vm.provision :shell, :inline => "npm install -g mocha nodegit" + config.vm.provision :shell, :inline => "echo -e '#!/bin/bash\ncp -R /vagrant git-hours\n sudo npm install git-hours -g' > install_shared_folder.sh" + config.vm.provision :shell, :inline => "chmod u+x install_shared_folder.sh; su vagrant -c 'bash install_shared_folder.sh'" +end |