Changeset View
Changeset View
Standalone View
Standalone View
tox.ini
[tox] | [tox] | ||||
envlist=flake8,mypy,py3-no-origin-ids,py3 | envlist=flake8,mypy,py3-no-origin-ids,py3 | ||||
[testenv:py3] | [testenv:py3] | ||||
deps = | deps = | ||||
.[testing] | .[testing] | ||||
.[listener] | .[listener] | ||||
pytest-cov | pytest-cov | ||||
pifpaf | |||||
commands = | commands = | ||||
pifpaf run postgresql -- pytest --hypothesis-profile=fast \ | pytest --hypothesis-profile=fast \ | ||||
--cov={envsitepackagesdir}/swh/storage \ | --cov={envsitepackagesdir}/swh/storage \ | ||||
{envsitepackagesdir}/swh/storage \ | {envsitepackagesdir}/swh/storage \ | ||||
--cov-branch {posargs} | --cov-branch {posargs} | ||||
[testenv:py3-slow] | [testenv:py3-slow] | ||||
deps = | deps = | ||||
.[testing] | .[testing] | ||||
.[listener] | .[listener] | ||||
pytest-cov | pytest-cov | ||||
pifpaf | |||||
commands = | commands = | ||||
pifpaf run postgresql -- pytest --hypothesis-profile=slow \ | pytest --hypothesis-profile=slow \ | ||||
--cov={envsitepackagesdir}/swh/storage \ | --cov={envsitepackagesdir}/swh/storage \ | ||||
{envsitepackagesdir}/swh/storage \ | {envsitepackagesdir}/swh/storage \ | ||||
--cov-branch {posargs} | --cov-branch {posargs} | ||||
[testenv:py3-no-origin-ids] | [testenv:py3-no-origin-ids] | ||||
deps = | deps = | ||||
.[testing] | .[testing] | ||||
pytest-cov | pytest-cov | ||||
setenv = | setenv = | ||||
SWH_STORAGE_IN_MEMORY_ENABLE_ORIGIN_IDS=false | SWH_STORAGE_IN_MEMORY_ENABLE_ORIGIN_IDS=false | ||||
commands = | commands = | ||||
pytest --hypothesis-profile=fast {posargs} {envsitepackagesdir}/swh/storage/tests/test_in_memory.py | pytest --hypothesis-profile=fast {posargs} {envsitepackagesdir}/swh/storage/tests/test_in_memory.py | ||||
vlorentz: Why? | |||||
Done Inline Actionsthis chunk could be moved in D2095 I guess. I removed it since I gradually drop support for ENABLE_ORIGIN_IDS in tests. douardda: this chunk could be moved in D2095 I guess. I removed it since I gradually drop support for… | |||||
Not Done Inline Actionspy3-no-origin-ids runs tests for the new behavior. Now tox only runs tests for the old behavior. vlorentz: `py3-no-origin-ids` runs tests for the new behavior. Now tox only runs tests for the old… | |||||
[testenv:flake8] | [testenv:flake8] | ||||
skip_install = true | skip_install = true | ||||
deps = | deps = | ||||
flake8 | flake8 | ||||
commands = | commands = | ||||
{envpython} -m flake8 | {envpython} -m flake8 | ||||
[testenv:mypy] | [testenv:mypy] | ||||
skip_install = true | skip_install = true | ||||
deps = | deps = | ||||
.[testing] | .[testing] | ||||
mypy | mypy | ||||
commands = | commands = | ||||
mypy swh | mypy swh |
Why?