Revision 03d5a2cf7ca8da36156d8f70f72b951999bbc7f8 authored by Antoine R. Dumont (@ardumont) on 08 October 2019, 12:13:14 UTC, committed by Antoine R. Dumont (@ardumont) on 08 October 2019, 14:40:51 UTC
1 parent c83f1f9
Raw File
tox.ini
[tox]
envlist=flake8,mypy,py3-no-origin-ids,py3

[testenv:py3]
deps =
  .[testing]
  .[listener]
  pytest-cov
  pifpaf
commands =
  pifpaf run postgresql -- pytest --hypothesis-profile=fast --cov=swh --cov-branch {posargs}

[testenv:py3-slow]
deps =
  .[testing]
  .[listener]
  pytest-cov
  pifpaf
commands =
  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 {posargs} swh/storage/tests/test_in_memory.py

[testenv:flake8]
skip_install = true
deps =
  flake8
commands =
  {envpython} -m flake8

[testenv:mypy]
skip_install = true
deps =
  .[testing]
  mypy
commands =
  mypy swh
back to top