-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
62 lines (56 loc) · 1.41 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
60
61
62
[tox]
minversion = 2.9
envlist =
py35-linux
# py{36,35}-linux
# nosetests-linux
docs-{html,pdf}
codestyle
skip_missing_interpreters = True
[travis]
python =
3.5: py35
3.6: py36
[testenv]
platform =
linux: linux
basepython =
py35: python3.5
py36: python3.6
commands =
coverage run setup.py test
coverage combine
coverage report
coveralls
install_command = pip install {opts} {packages}
list_dependencies_command = pip freeze
deps = -r{toxinidir}/tests_requirements.txt
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/papas
description = 'Test environment using unittest'
[testenv:nosetests]
basepython = python3
commands =
coverage run setup.py nosetests
coverage combine
coverage report
coveralls
description = 'Test environment using nosetests'
[testenv:codestyle]
basepython = python3
skip_install = True
deps = flake8>=3.5
commands = flake8 {toxinidir}
description = 'Test code style and type checks using flake8'
[testenv:docs-html]
basepython = python3
skip_install = True
deps = Sphinx>=1.6
commands = sphinx-build -M html {toxinidir}/docs docs/_build -d {envtmpdir}/doctrees -W
description = 'Test documentation build using Sphinx'
[testenv:docs-pdf]
basepython = python3
skip_install = True
deps = Sphinx>=1.6
commands = sphinx-build -M latexpdf {toxinidir}/docs docs/_build -d {envtmpdir}/doctrees -W
description = 'Test documentation build using Sphinx'