diff options
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  | 
