forked from twisted/klein
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
122 lines (82 loc) · 1.85 KB
/
Copy pathtox.ini
File metadata and controls
122 lines (82 loc) · 1.85 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
[tox]
envlist =
pyflakes, twistedchecker-diff
trial-py{27,py,33,34,35,36}-tw{132,140,150,155,166,current,trunk}
docs, docs-linkcheck
skip_missing_interpreters = True
##
# Default testenv
##
[testenv]
basepython =
pypy: pypy
py27: python2.7
py33: python3.3
py34: python3.4
py35: python3.5
py36: python3.6
deps =
coverage
mock
tw132: Twisted==13.2
tw140: Twisted==14.0.2
tw150: Twisted==15.0
tw154: Twisted==15.4
tw155: Twisted==15.5
tw166: Twisted==16.6
twcurrent: Twisted
twtrunk: https://github.com/twisted/twisted/archive/trunk.zip
commands =
{toxinidir}/.travis/environment
coverage run -p "{envdir}/bin/trial" {posargs:klein}
##
# Run pyflakes
##
[testenv:pyflakes]
skip_install = True
deps = pyflakes
basepython = python3.5
commands =
{toxinidir}/.travis/environment
pyflakes src/klein
##
# Run twistedchecker on full project
##
[testenv:twistedchecker]
deps = twistedchecker
basepython = python2.7
commands =
{toxinidir}/.travis/environment
twistedchecker klein
##
# Run twistedchecker on changes relative to master
##
[testenv:twistedchecker-diff]
deps =
{[testenv:twistedchecker]deps}
diff_cover
basepython = python2.7
commands =
{toxinidir}/.travis/environment
{toxinidir}/.travis/twistedchecker-diff klein
##
# Build the documentation
##
[testenv:docs]
deps =
sphinx
sphinx_rtd_theme
basepython = python2.7
commands =
{toxinidir}/.travis/environment
sphinx-build -b html -d "{envtmpdir}/doctrees" docs docs/_build/html
##
# Check for broken links in documentation
##
[testenv:docs-linkcheck]
deps = {[testenv:docs]deps}
basepython = python2.7
commands =
{toxinidir}/.travis/environment
sphinx-build -b html -d "{envtmpdir}/doctrees" docs docs/_build/html
sphinx-build -b linkcheck docs docs/_build/html