Buildserver snapshot refinements

This commit is contained in:
Ciaran Gultnieks 2012-09-06 18:36:34 +01:00
parent 448fa61d0c
commit cdfa020ba7
2 changed files with 129 additions and 120 deletions

View file

@ -2,12 +2,9 @@
set -e
rm -f buildserver.box
cd buildserver
vagrant halt
vagrant up
sleep 5
vagrant ssh -c "sudo shutdown -h now"
cd ..
# Just to wait until it's shut down!
sleep 20
vagrant halt
vagrant package --base `VBoxManage list vms | grep buildserver | sed 's/"\(.*\)".*/\1/'` --output buildserver.box
vagrant box add buildserver buildserver.box -f && rm buildserver.box