diff options
author | Gareth Rees <gareth@mysociety.org> | 2014-08-18 13:38:55 +0100 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2014-08-18 13:38:55 +0100 |
commit | e09834d1cc7cf5f9f57e356d8145fd9383fa1228 (patch) | |
tree | d415d6c556ff3148ac3a686d7d8dfbd9309adbc4 /script/test-vagrant-provisioning | |
parent | 35862d85c4aea5a8a806410e1b1d9ae9e1fa3612 (diff) | |
parent | f0679b4321f6d1eb3aaca3412d73edde22ce667c (diff) |
Merge branch 'customisable-vagrant-box' into rails-3-develop
Diffstat (limited to 'script/test-vagrant-provisioning')
-rwxr-xr-x | script/test-vagrant-provisioning | 19 |
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 |