forked from rafaduran/python-mcollective
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
30 lines (26 loc) · 773 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
[tox]
envlist = py26,py27,py33,py34,flake8,docs
[testenv]
whitelist_externals=rm
deps =
-r{toxinidir}/requirements/tests.txt
commands=
rm -rf {toxinidir}/htmlcov/
py.test \
--cov pymco --cov-report=html \
--cov-config {toxinidir}/.coveragerc \
--junitxml=junit-{envname}.xml \
--basetemp={envtmpdir} \ # py.test tempdir setting
[] # substitute with tox' positional arguments
[testenv:flake8]
commands = flake8 pymco
deps = -r{toxinidir}/requirements/flake8.txt
[flake8]
show-source = true
max-line-length = 99
[testenv:docs]
deps =
{[testenv]deps}
-r{toxinidir}/requirements/docs.txt
commands=
sphinx-build -b html -d {envtmpdir}/build/doctrees {toxinidir}/docs/source {toxinidir}/docs/build/html