blob: 52d87724af15cb5e1d880c3f0ca8edc8763f3f30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
[tox]
minversion = 3.5.0
envlist = unittest, docs, 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}/devel-requirements.txt
-r{toxinidir}/requirements.txt
commands = discover -s tests
[testenv:cover]
setenv =
{[testenv]setenv}
PYTHON=coverage run --parallel-mode
deps =
coverage
discover
commands = coverage erase
coverage run --source pyasn1 -m unittest discover {posargs}
coverage report --fail-under 80
[testenv:bandit]
skip_install = true
deps =
bandit
commands =
bandit -r pyasn1 -c .bandit.yml
[testenv:docs]
commands = make -C docs html
[testenv:build]
skip_install = true
deps =
wheel
setuptools
commands =
python setup.py -q sdist bdist_wheel
|