forked from HPENetworking/topology
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
51 lines (45 loc) · 1.17 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
[tox]
envlist = py27, py34, coverage, doc
[testenv]
passenv = http_proxy https_proxy
deps =
-rrequirements.dev.txt
changedir = {envtmpdir}
commands =
{envpython} -c "import topology; print(topology.__file__)"
flake8 {toxinidir}
py.test \
{posargs:--topology-platform debug} \
{toxinidir}/test \
{envsitepackagesdir}/topology
[testenv:coverage]
basepython = python3.4
commands =
py.test \
--junitxml=tests.xml \
--cov=topology \
--cov-report xml \
--cov-report html \
--cov-report term \
--cov-config={toxinidir}/test/.coveragerc \
--topology-nml-dir topologies \
--topology-plot-dir topologies \
--topology-plot-format svg \
{posargs:--topology-platform debug} \
{toxinidir}/test {envsitepackagesdir}/topology
[testenv:py27]
deps =
-rrequirements.dev.txt
-rrequirements.py27.txt
[testenv:doc]
basepython = python3.4
deps =
-rrequirements.doc.txt
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