-
Notifications
You must be signed in to change notification settings - Fork 23
/
tox.ini
71 lines (59 loc) · 1.48 KB
/
tox.ini
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
[tox]
envlist = test, doc
[testenv]
basepython = python3
changedir = {envtmpdir}
passenv = https_proxy, http_proxy, no_proxy
[testenv:build]
skip_install = True
deps =
wheel
setuptools
changedir = {toxinidir}
commands =
{envpython} setup.py sdist
{envpython} setup.py bdist_wheel
[testenv:test]
deps =
setuptools
-rtest/requirements.txt
commands =
{envpython} -c "import topology; print(topology.__file__)"
flake8 {toxinidir}
py.test -s \
--junitxml=tests.xml \
--cov=topology \
--cov-report xml \
--cov-report html \
--cov-report term \
--cov-config={toxinidir}/test/.coveragerc \
{posargs:--topology-platform debug} \
{toxinidir}/test
[testenv:doc]
deps =
setuptools
-rdoc/requirements.txt
allowlist_externals =
dot
commands =
sphinx-build -W -b html -d doctrees {toxinidir}/doc/ html
{envpython} -c "print('>> You may now run:\nwebdev {envtmpdir}/html/')"
[testenv:publish]
skip_install = True
deps =
wheel
twine
allowlist_externals =
ls
commands =
{envpython} {toxinidir}/setup.py sdist
{envpython} {toxinidir}/setup.py bdist_wheel
ls -lh {toxinidir}/dist/
twine check {toxinidir}/dist/*
{envpython} -c "print((\
'Packages ready. '\
'Execute the following command to publish:\n'\
' twine upload --username hpe-networking --skip-existing dist/*'\
))"
[flake8]
exclude = .git,.tox,.cache,__pycache__,*.egg-info,build