You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.2 KiB
38 lines
1.2 KiB
[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 |
|
|
|
[testenv:basic] |
|
# Just run basic_test.sh, with multipass support. |
|
commands = |
|
{toxinidir}/tests/basic-test.sh -m
|
|
|