-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtox.ini
More file actions
75 lines (65 loc) · 1.66 KB
/
tox.ini
File metadata and controls
75 lines (65 loc) · 1.66 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
[tox]
envlist = pep8
begin,py27,py3{6,8},end
py27-functional,py3{6,8}-functional
minversion = 2.0
skipsdist = true
skip_missing_interpreters = true
[base]
project_name = loopster
[testenv]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
setenv =
PACKAGE_NAME=loopster
TEST_PATH={env:PACKAGE_NAME}/tests/unit
functional: TEST_PATH={env:PACKAGE_NAME}/tests/functional
commands =
pytest --cov={env:PACKAGE_NAME} {posargs} --timer-top-n=10 {env:TEST_PATH}
[testenv:pep8]
deps = hacking<3
skip_install = True
basepython = python3
commands =
flake8 {posargs} {toxinidir}/{[base]project_name}
[testenv:begin]
basepython = python3
envdir = {toxworkdir}/cover
commands =
coverage erase
[testenv:end]
basepython = python3
envdir = {toxworkdir}/cover
commands =
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
coverage report --skip-covered
[testenv:cover]
basepython = python3
envdir = {toxworkdir}/cover
commands =
coverage erase
coverage run -m nose {posargs} {[base]project_name}.tests.unit
coverage html -d cover
coverage report --skip-covered
[testenv:venv]
commands = {posargs}
[flake8]
show-source = true
builtins = _
exclude = .venv,.git,.tox,dist,docs,*lib/python*,*egg,tools,build*
[testenv:docs]
basepython = python3
passenv = CI_*
deps = {[testenv]deps}
-r{toxinidir}/docs/requirements.txt
commands = python {toxinidir}/docs/source/download-plantuml.py
reno report -o docs/source/releasenotes.rst
sphinx-build -W -b html docs/source docs/build/html
[testenv:develop]
basepython = python2
deps =
ipython<6.0
{[testenv]deps}
usedevelop = true