92a6ea8dc7
Renamed the old and outdated "configure-openstack" script to "init.sh" Updated init.sh and folded most of the configure hook into it. Removed database installation step from install hook. We can now install microstack without a database dump, which helps immensely in updating. And we have a logical place to put additional configuraiton, including some of the manual steps in DEMO.md, which could be scripted if we gave users a chance to skip the system changes that they wanted to skip. Also updated README and DEMO file to match new flow. Updated test files. Future cleanup and features documented in Trello, but not included in this PR, which is big enough already :-) Change-Id: I8d926a8b463124494ddb7a4696adbe86f89db7d5
34 lines
1.0 KiB
INI
34 lines
1.0 KiB
INI
[tox]
|
|
envlist = multipass
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
install_command = pip install {opts} {packages}
|
|
setenv =
|
|
PATH = {env:PATH}:/snap/bin
|
|
passenv = HOME TERM
|
|
whitelist_externals =
|
|
sudo
|
|
/snap/bin/snapcraft
|
|
|
|
[testenv:snap]
|
|
# Testing environment for the gerrit gate. Named 'snap' to conform to
|
|
# the requirements of the snap friendly job that we inherit from in
|
|
# .zuul.yaml.
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
{toxinidir}/tools/lxd_build.sh
|
|
{toxinidir}/tests/basic-test.sh
|
|
|
|
[testenv:multipass]
|
|
# Default testing environment for a human operated machine. Builds the
|
|
# snap in a multipass instance, then runs tests in a separate multipass
|
|
# instance. This makes the fewest changes to your personal computer,
|
|
# but is heavier on system requirements. For a more lightweight test,
|
|
# use the "snap" environment above. Beware that you will wind up with
|
|
# a lot of things installed, including potentially the locally built
|
|
# version of MicroStack!
|
|
commands =
|
|
{toxinidir}/tools/multipass_build.sh
|
|
{toxinidir}/tests/basic-test.sh -m
|