diff options
author | Gareth Rees <gareth@mysociety.org> | 2014-08-08 18:27:20 +0100 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2014-08-13 10:30:07 +0100 |
commit | 323f68acca26fc5d0363a5a556ae4900ad4cc6a1 (patch) | |
tree | 4ea200978af621a0d2d850027fc4660e30d68dfb /script/test-vagrant-provisioning | |
parent | 68e509cbef97f5717c6d4e3aad5d93c589f6cdf1 (diff) |
Add script to test vagrant vm provisioning
- e.g. script/test-vagrant-provisioning squeeze64
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 |