A Swift-All-In-One in a few easy steps.
vagrant up
vagrant ssh
echo "awesome" > test
swift upload test test
swift download test test -o -
This project assumes you have Virtualbox and Vagrant.
You should be able to run most tests without too much fuss once SSH'ed into the VM.
.unittests
.functests
.probetests
vtox -e pep8
vtox -e py27
vtox # run all gate checks
A few things are configurable, see localrc-template
.
cp localrc-template localrc
vi localrc
source localrc
vagrant provision
vagrant ssh
rebuildswift
A few scripts are available to make your dev life easier.
vagrant up --provision
will bring up your VM in working order (useful when your VM is halted)source localrc; vagrant provision
on your host to push the new Chef bits in place (useful if you change localrc)rebuildswift
to reapply everything like it would be at the end of Chef time (useful to revert local config changes)resetswift
will wipe the drives and leave any local config changes in place (useful just to clean out Swift data)reinstallswift
will make sure all of the bin scripts are installed correctly and restart the main swift processes (useful if you change branches)autodoc [swift-specs]
will build the sphinx docs and watch files for changes, and upload them to a public container on your vm so you can review themvtox
will hack the local tox.ini and setup.py so you can run tox tests successfully on the swift repo in the/vagrant
directory