-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
151 lines (118 loc) · 3.21 KB
/
tox.ini
File metadata and controls
151 lines (118 loc) · 3.21 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
[tox]
envlist =
{py27,py37}-lint,
py{27}-Plone{43,51},
py{27,37}-Plone{52},
build_instance,
# docs,
# coverage-report,
skip_missing_interpreters = True
[testenv]
skip_install = true
extras =
develop
test
commands =
{envbindir}/buildout -c {toxinidir}/{env:version_file} buildout:directory={envdir} buildout:develop={toxinidir} bootstrap
{envbindir}/buildout -c {toxinidir}/{env:version_file} buildout:directory={envdir} buildout:develop={toxinidir} annotate
{envbindir}/buildout -c {toxinidir}/{env:version_file} buildout:directory={envdir} buildout:develop={toxinidir} install test robot code-analysis
coverage run {envbindir}/test -v1 --auto-color {posargs}
# coverage run {envbindir}/test -v --all -t robot {posargs}
{envbindir}/code-analysis
setenv =
COVERAGE_FILE=.coverage.{envname}
version_file=test_plone51.cfg
Plone43: version_file=test_plone43.cfg
Plone50: version_file=test_plone50.cfg
Plone51: version_file=test_plone51.cfg
Plone52: version_file=test_plone52.cfg
deps =
-rrequirements.txt
Plone43: -cconstraints_plone43.txt
Plone50: -cconstraints_plone50.txt
Plone51: -cconstraints_plone51.txt
Plone52: -cconstraints_plone52.txt
coverage
[testenv:coverage-report]
skip_install = true
usedevelop = True
basepython = python2.7
deps =
coverage
-cconstraints_plone51.txt
setenv =
COVERAGE_FILE=.coverage
commands =
coverage erase
coverage combine
coverage html
coverage xml
coverage report
[lint]
skip_install = true
deps =
isort
mccabe
commands =
isort --check-only --recursive {toxinidir}/src
whitelist_externals =
mkdir
[testenv:isort-apply]
skip_install = true
deps =
isort
commands =
isort --apply --recursive {toxinidir}/src
[testenv:py27-lint]
basepython = python2.7
skip_install = true
deps = {[lint]deps}
commands = {[lint]commands}
whitelist_externals = {[lint]whitelist_externals}
[testenv:py35-lint]
basepython = python3.5
skip_install = true
deps = {[lint]deps}
commands = {[lint]commands}
whitelist_externals = {[lint]whitelist_externals}
[testenv:py36-lint]
basepython = python3.6
skip_install = true
deps = {[lint]deps}
commands = {[lint]commands}
whitelist_externals = {[lint]whitelist_externals}
[testenv:py37-lint]
basepython = python3.7
skip_install = true
deps = {[lint]deps}
commands = {[lint]commands}
whitelist_externals = {[lint]whitelist_externals}
[testenv:docs]
skip_install = true
deps =
Sphinx
commands =
sphinx-build -b html -d _build/docs/doctrees docs _build/docs/html
[testenv:update_translation]
skip_install = true
deps =
i18ndude
commands =
i18ndude find-untranslated
i18ndude rebuild-pot
i18ndude merge
i18ndude sync
i18ndude list
[testenv:release]
skip_install = true
deps =
zest.releaser[recommended]
commands =
fullrelease --no-input -v
[testenv:build_instance]
basepython = python2.7
skip_install = true
commands =
{envbindir}/buildout -c {toxinidir}/{env:version_file} buildout:directory={toxinidir} bootstrap
{envbindir}/buildout -c {toxinidir}/{env:version_file} buildout:directory={toxinidir} annotate
{envbindir}/buildout -c {toxinidir}/{env:version_file} buildout:directory={toxinidir}