blob: a335e3c33f85c71403a82042d270a8292633e163 [file] [log] [blame]
[tox]
minversion = 3.4.0
envlist = unittest, bandit, build
[testenv]
basepython = python3
usedevelop = True
setenv =
VIRTUAL_ENV={envdir}
PYTHONWARNINGS=default::DeprecationWarning
install_command = pip install {opts} {packages}
[testenv:unittest]
deps =
discover
-r{toxinidir}/requirements.txt
commands = discover -s examples/pyasn1_modules-example-switch/tests -s tests
[testenv:cover]
setenv =
{[testenv]setenv}
PYTHON=coverage run --parallel-mode
deps =
coverage
discover
commands = coverage erase
coverage run --source pyasn1_modules -m unittest discover {posargs}
coverage report --fail-under 80
[testenv:bandit]
skip_install = true
deps =
bandit
commands =
bandit -r pyasn1_modules -c .bandit.yml
[testenv:build]
skip_install = true
deps =
wheel
setuptools
commands =
python setup.py -q sdist bdist_wheel