forked from carlos-jenkins/plantweb
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
43 lines (38 loc) · 921 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
42
43
[tox]
envlist = py27, py35, coverage, doc
[testenv]
passenv = http_proxy https_proxy
deps =
-rrequirements.dev.txt
changedir = {envtmpdir}
commands =
{envpython} -c "import plantweb; print(plantweb.__file__)"
flake8 {toxinidir}
py.test -vvv -s \
{posargs} \
{toxinidir}/test \
{envsitepackagesdir}/plantweb
[testenv:coverage]
basepython = python3.5
commands =
py.test -vvv -s \
--junitxml=tests.xml \
--cov=plantweb \
--cov-report xml \
--cov-report html \
--cov-report term \
{posargs} \
{toxinidir}/test \
{envsitepackagesdir}/plantweb
[testenv:doc]
basepython = python3.5
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