-
Notifications
You must be signed in to change notification settings - Fork 9
/
tox.ini
83 lines (71 loc) · 1.68 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# Tox configuration file
# Read more under https://tox.readthedocs.org/
[tox]
minversion = 1.8
envlist = py27,py33,py34,py35,flake8
skip_missing_interpreters = True
[testenv]
changedir = {toxinidir}
commands =
py.test {posargs}
deps =
-r{toxinidir}/requirements-test.txt
-r{toxinidir}/requirements.txt
[testenv:flake8]
changedir = {toxinidir}
deps = flake8
commands = flake8 setup.py percolate
# Options for flake8
[flake8]
# Continuous tesing
[testenv:c27]
basepython = python2.7
changedir = {toxinidir}
commands = {toxinidir}/devtools/ctest.sh
[testenv:c34]
basepython = python3.4
changedir = {toxinidir}
commands = {toxinidir}/devtools/ctest.sh
[testenv:c35]
basepython = python3.5
changedir = {toxinidir}
commands = {toxinidir}/devtools/ctest.sh
# Development environments
[testenv:devenv27]
changedir = {toxinidir}
envdir = .devenv27
basepython = python2.7
usedevelop = True
commands =
deps = -r{toxinidir}/requirements-dev.txt
[testenv:devenv34]
changedir = {toxinidir}
envdir = .devenv34
basepython = python3.4
usedevelop = True
commands =
deps = -r{toxinidir}/requirements-dev.txt
[testenv:devenv35]
changedir = {toxinidir}
envdir = .devenv35
basepython = python3.5
usedevelop = True
commands =
deps = -r{toxinidir}/requirements-dev.txt
# Build the documentation
[testenv:docs]
changedir = {toxinidir}
basepython = python3
commands = python setup.py docs {posargs}
deps =
-r{toxinidir}/requirements-doc.txt
-r{toxinidir}/requirements.txt
# Continuously build the documentation
[testenv:cdocs]
changedir = {toxinidir}
basepython = python3
commands = {toxinidir}/devtools/cdocs.sh
deps =
-r{toxinidir}/requirements-doc.txt
-r{toxinidir}/requirements.txt
usedevelop = True