aboutsummaryrefslogtreecommitdiffstats
path: root/script/test-vagrant-provisioning
diff options
context:
space:
mode:
authorGareth Rees <gareth@mysociety.org>2014-08-18 13:38:55 +0100
committerGareth Rees <gareth@mysociety.org>2014-08-18 13:38:55 +0100
commite09834d1cc7cf5f9f57e356d8145fd9383fa1228 (patch)
treed415d6c556ff3148ac3a686d7d8dfbd9309adbc4 /script/test-vagrant-provisioning
parent35862d85c4aea5a8a806410e1b1d9ae9e1fa3612 (diff)
parentf0679b4321f6d1eb3aaca3412d73edde22ce667c (diff)
Merge branch 'customisable-vagrant-box' into rails-3-develop
Diffstat (limited to 'script/test-vagrant-provisioning')
-rwxr-xr-xscript/test-vagrant-provisioning19
1 files changed, 19 insertions, 0 deletions
diff --git a/script/test-vagrant-provisioning b/script/test-vagrant-provisioning
new file mode 100755
index 000000000..62862f3df
--- /dev/null
+++ b/script/test-vagrant-provisioning
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+OS=$1
+
+vagrant destroy
+
+ALAVETELI_VAGRANT_OS="$OS" vagrant up &&
+ vagrant ssh -c "cd /home/vagrant/alaveteli && bundle exec rails s --daemon" &&
+ sleep 10 &&
+ curl -I http://10.10.10.30:3000
+
+if [[ $? -ne 0 ]]
+then
+ echo "Failed with exit code $?"
+ exit 1
+else
+ echo "Success!"
+ exit 0
+fi