summaryrefslogtreecommitdiff
path: root/test-vm
diff options
context:
space:
mode:
Diffstat (limited to 'test-vm')
-rw-r--r--test-vm/Vagrantfile2
-rw-r--r--test-vm/antigen.sh3
-rw-r--r--test-vm/bootstrap.sh10
-rw-r--r--test-vm/omz.sh2
-rw-r--r--test-vm/plain.sh3
-rw-r--r--test-vm/prezto.sh3
6 files changed, 19 insertions, 4 deletions
diff --git a/test-vm/Vagrantfile b/test-vm/Vagrantfile
index ee53fcdf..a421c706 100644
--- a/test-vm/Vagrantfile
+++ b/test-vm/Vagrantfile
@@ -16,7 +16,7 @@ Vagrant.configure(2) do |config|
# Bootstrap
config.vm.provision :shell, path: "bootstrap.sh", privileged: false
- config.vm.provision :shell, path: "plain.sh", privileged: false
+ config.vm.provision :shell, path: "../test-vm-providers/plain.sh", privileged: false
config.vm.provision :shell, path: "antigen.sh"
config.vm.provision :shell, path: "prezto.sh"
config.vm.provision :shell, path: "omz.sh"
diff --git a/test-vm/antigen.sh b/test-vm/antigen.sh
index 0f44c6ca..2c563322 100644
--- a/test-vm/antigen.sh
+++ b/test-vm/antigen.sh
@@ -24,4 +24,7 @@ antigen apply
mkdir ~/antigen
curl -qL https://raw.githubusercontent.com/zsh-users/antigen/master/antigen.zsh > ~/antigen/antigen.zsh
source ~/antigen/antigen.zsh
+
+ # setup environment
+ /vagrant_data/test-vm-providers/setup-environment.sh
)
diff --git a/test-vm/bootstrap.sh b/test-vm/bootstrap.sh
index 9651c4eb..f680d4b8 100644
--- a/test-vm/bootstrap.sh
+++ b/test-vm/bootstrap.sh
@@ -7,3 +7,13 @@ sudo apt-get install -y git
sudo apt-get install -y zsh
sudo chsh -s $(which zsh) vagrant
+
+# Install mercurial
+sudo apt-get install -y mercurial
+# Install Subversion
+sudo apt-get install -y subversion
+# install golang
+echo 'golang-go golang-go/dashboard boolean false' | sudo debconf-set-selections
+sudo apt-get install -y golang
+# Install dependencies for tests
+sudo apt-get install -y jq node ruby python python-virtualenv \ No newline at end of file
diff --git a/test-vm/omz.sh b/test-vm/omz.sh
index 953f5c8f..73b659f3 100644
--- a/test-vm/omz.sh
+++ b/test-vm/omz.sh
@@ -28,4 +28,6 @@ plugins=(git rake ruby)
source $ZSH/oh-my-zsh.sh
' > $HOME/.zshrc
+ # setup environment
+ /vagrant_data/test-vm-providers/setup-environment.sh
)
diff --git a/test-vm/plain.sh b/test-vm/plain.sh
deleted file mode 100644
index 9c8445f4..00000000
--- a/test-vm/plain.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/usr/bin/zsh
-
-echo 'source /vagrant_data/powerlevel9k.zsh-theme' > ~/.zshrc
diff --git a/test-vm/prezto.sh b/test-vm/prezto.sh
index af4e7454..3ac38503 100644
--- a/test-vm/prezto.sh
+++ b/test-vm/prezto.sh
@@ -23,4 +23,7 @@ chmod 440 /etc/sudoers.d/$NEW_USER
ln -s /vagrant_data/powerlevel9k.zsh-theme ~/.zprezto/modules/prompt/functions/prompt_powerlevel9k_setup
sed -i "s/theme\ 'sorin'/theme\ 'powerlevel9k'/g" ~/.zpreztorc
+
+ # setup environment
+ /vagrant_data/test-vm-providers/setup-environment.sh
)