-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
41 lines (36 loc) · 931 Bytes
/
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
[tox]
envlist = py27, py34, coverage, doc
[testenv]
passenv = http_proxy https_proxy
deps =
-rrequirements.dev.txt
changedir = {envtmpdir}
commands =
{envpython} -c "import topology_lib_openssl; print(topology_lib_openssl.__file__)"
flake8 {toxinidir}
py.test \
{posargs} \
{toxinidir}/test \
{envsitepackagesdir}/topology_lib_openssl
[testenv:coverage]
basepython = python3.4
commands =
py.test \
--junitxml=tests.xml \
--cov=topology_lib_openssl \
--cov-report xml \
--cov-report html \
--cov-report term \
{posargs} \
{toxinidir}/test \
{envsitepackagesdir}/topology_lib_openssl
[testenv:doc]
basepython = python3.4
whitelist_externals =
dot
commands =
sphinx-build -W -b html -d doctrees {toxinidir}/doc/ html
[flake8]
exclude = .git,.tox,.cache,__pycache__,*.egg-info
[pytest]
addopts = --doctest-modules