forked from kpn/py-timeexecution
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
34 lines (28 loc) · 897 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
[pytest]
addopts=--tb=short
[tox]
envlist = py27,py35,isort-check,isort-fix,lint,docs
skipsdist = true
[testenv]
passenv = *
commands =
py.test tests --cov-report=term-missing --cov-report=xml --cov-append --cov=time_execution -v -s {posargs}
deps =
-rrequirements/requirements-base.txt
-rrequirements/requirements-testing.txt
[testenv:lint]
commands = flake8 time_execution tests --exclude=time_execution/__init__.py
deps = flake8
[testenv:docs]
commands =
python {toxinidir}/docs/apidoc.py -T -M -d 2 -o {toxinidir}/docs/api {toxinidir}/time_execution
sphinx-build -W -b html {toxinidir}/docs {toxinidir}/docs/_build/html
deps =
-rrequirements/requirements-base.txt
-rrequirements/requirements-testing.txt
[testenv:isort-check]
commands = isort -rc -c time_execution tests
deps = isort
[testenv:isort-fix]
commands = isort -rc time_execution tests
deps = isort