forked from nickstenning/honcho
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
59 lines (50 loc) · 1.04 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
52
53
54
55
56
57
58
59
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py26, py27, py33, py34, py35, py36, pypy, lint
[flake8]
max-line-length = 110
exclude = .tox,.git,doc
[pytest]
minversion = 2.8
testpaths = tests
[testenv]
deps =
coverage
jinja2
mock
pytest
commands = coverage run -m pytest {posargs}
[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase
[testenv:coverage]
deps = coverage
skip_install = true
commands =
coverage combine
coverage report
[testenv:codecov]
deps =
coverage
codecov
skip_install = true
passenv = CI TOXENV TRAVIS*
commands =
coverage combine
codecov -e TOXENV
[testenv:lint]
deps =
flake8
pep8-naming
skip_install = true
commands =
flake8 honcho
[testenv:docs]
changedir = doc
deps = sphinx
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html