Changeset View
Changeset View
Standalone View
Standalone View
tox.ini
[tox] | [tox] | ||||
envlist=flake8,py3 | envlist=flake8,py3-no-origin-ids,py3 | ||||
[testenv:py3] | [testenv:py3] | ||||
deps = | deps = | ||||
.[testing] | .[testing] | ||||
.[listener] | .[listener] | ||||
pytest-cov | pytest-cov | ||||
pifpaf | pifpaf | ||||
commands = | commands = | ||||
pifpaf run postgresql -- pytest --hypothesis-profile=fast --cov=swh --cov-branch {posargs} | pifpaf run postgresql -- pytest --hypothesis-profile=fast --cov=swh --cov-branch {posargs} | ||||
[testenv:py3-slow] | [testenv:py3-slow] | ||||
deps = | deps = | ||||
.[testing] | .[testing] | ||||
.[listener] | .[listener] | ||||
pytest-cov | pytest-cov | ||||
pifpaf | pifpaf | ||||
commands = | commands = | ||||
pifpaf run postgresql -- pytest --hypothesis-profile=slow --cov=swh --cov-branch {posargs} | pifpaf run postgresql -- pytest --hypothesis-profile=slow --cov=swh --cov-branch {posargs} | ||||
[testenv:py3-no-origin-ids] | |||||
deps = | |||||
.[testing] | |||||
pytest-cov | |||||
setenv = | |||||
SWH_STORAGE_IN_MEMORY_ENABLE_ORIGIN_IDS=false | |||||
commands = | |||||
pytest --hypothesis-profile=fast --cov=swh --cov-branch {posargs} swh/storage/tests/test_in_memory.py | |||||
[testenv:flake8] | [testenv:flake8] | ||||
skip_install = true | skip_install = true | ||||
deps = | deps = | ||||
flake8 | flake8 | ||||
commands = | commands = | ||||
{envpython} -m flake8 | {envpython} -m flake8 |