summaryrefslogtreecommitdiff
path: root/debian_setup.sh
diff options
context:
space:
mode:
authorNavaL <ayoyo@thoughtworks.com>2016-02-09 13:41:21 +0100
committerNavaL <ayoyo@thoughtworks.com>2016-02-09 13:41:57 +0100
commitb7943d436702c2bf6551ccceded94eff8638eae1 (patch)
tree2e58367cda46bf90b34a9cda4e2526c641227384 /debian_setup.sh
parent1716d0f65d42451d7fe5fe761703e7c733533733 (diff)
adding OSX setup
Issue #593
Diffstat (limited to 'debian_setup.sh')
-rw-r--r--debian_setup.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/debian_setup.sh b/debian_setup.sh
new file mode 100644
index 00000000..9634a69e
--- /dev/null
+++ b/debian_setup.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+#
+
+hash vagrant 2>/dev/null || { echo >&2 "Vagrant is not installed. Aborting."; exit 1; }
+hash vboxmanage 2>/dev/null || hash virsh 2>/dev/null || { echo >&2 "Please install Virtualbox or Libvirt first and try again."; exit 1;}
+
+vagrant_ssh (){
+ vagrant ssh -c "export LANG=en_US.UTF-8; export LANGUAGE=en_US.UTF-8; export LC_ALL=en_US.UTF-8; source /home/vagrant/user-agent-venv/bin/activate; cd $1; $2"
+}
+
+if [ -d ./pixelated-user-agent ]
+then
+ cd pixelated-user-agent
+ /usr/bin/git pull --rebase
+else
+ /usr/bin/git clone https://github.com/pixelated/pixelated-user-agent.git
+ cd pixelated-user-agent
+fi
+
+vagrant up
+vagrant_ssh '/vagrant/service' './go setup'
+vagrant ssh