A reproducible vagrant-based environment to run the shifter's CI tests.
First you need to have somewhere on your machine a local copy of the shifter's repository. Then you need to modify the Vagrantfile as shown below.
config.vm.synced_folder "<path of the repository on your machine>", "/shared-folders/shifter-repository"
The above configuration will share your local copy of the repository with the virtual machine.
Create the virtual machine and provision it:
cd <project root folder> # i.e. where vagrant file is located
vagrant up
Ssh to the virtual machine:
vagrant ssh
Build shifter and run the CI tests:
/shared-folders/scripts/build_shifter_and_run_tests.sh
Tested on Ubuntu 16.04 with Vagrant 1.8.1 and Virtualbox 5.0.18.
- The CI tests are not independent (sigh!), that is the results are not guaranteed to be consistent when running subsets of the tests in different orders. So far I experienced more or less sporadic failures of the test imagegwapi_test.py:GWTestCase.test_autoexpire. The test passed when the entire test suite was executed though.