-
Notifications
You must be signed in to change notification settings - Fork 15
/
tox.ini
41 lines (36 loc) · 967 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, py3, coverage, doc
[testenv]
passenv = http_proxy https_proxy
deps =
-rrequirements.dev.txt
changedir = {envtmpdir}
commands =
{envpython} -c "import topology_docker; print(topology_docker.__file__)"
flake8 {toxinidir}
py.test \
{posargs:--topology-platform=docker} \
{toxinidir}/test \
{envsitepackagesdir}/topology_docker
[testenv:coverage]
basepython = python3
commands =
py.test \
--junitxml=tests.xml \
--cov=topology_docker \
--cov-report xml \
--cov-report html \
--cov-report term \
{posargs:--topology-platform=docker} \
{toxinidir}/test \
{envsitepackagesdir}/topology_docker
[testenv:doc]
basepython = python3
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 --exitfirst