forked from carlos-jenkins/autoapi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
41 lines (33 loc) · 835 Bytes
/
tox.ini
File metadata and controls
41 lines (33 loc) · 835 Bytes
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
[tox]
envlist = test, doc, lint
[testenv]
basepython = python3
changedir = {envtmpdir}
passenv = http_proxy https_proxy no_proxy HOME
[testenv:test]
deps =
-rtest/requirements.txt
commands =
{envpython} -c "import origen_autoapi; print(origen_autoapi.__file__)"
py.test {posargs} \
--junitxml=tests.xml \
--cov=autoapi \
--cov-report xml \
--cov-report html \
--cov-report term \
{toxinidir}/test
[testenv:doc]
deps =
-rdoc/requirements.txt
whitelist_externals =
dot
commands =
sphinx-build -W -b html -d doctrees {toxinidir}/doc/ html
{envpython} -c "print('>> You may now run:\nwebdev {envtmpdir}/html/')"
[testenv:lint]
deps =
-rtest/requirements.txt
commands =
flake8 {toxinidir}
[flake8]
exclude = .git,.tox,.cache,__pycache__,*.egg-info