Debian Codegraph @

tox.ini

raw
1 [tox]
2 envlist=
3 flake8,
4 check_rst,
5 py3-django111,
6 py3-django22,
7 py3-django32,
8 py3-django42,
9 py3-django52,
10
11 ##################
12 # generic config #
13 ##################
14
15 [flake8]
16 max-line-length=100
17 exclude=migrations
18 allowlist_externals={[post_cmd]allowlist_external}
19
20 [base]
21 deps =
22 -r{toxinidir}/requirements-dev.txt
23
24 [post_cmd]
25 commands=
26 find {toxworkdir} -name '*.pyc' -delete
27 mkdir -p {toxinidir}/tox_logs/
28 bash -c "mv {toxworkdir}/{envname}/log/* {toxinidir}/tox_logs/"
29 allowlist_externals=
30 find
31 bash
32 mkdir
33
34 [testenv]
35 setenv=
36 PYTHONWARNINGS=always
37 commands=
38 py.test -rw {posargs:cas_server/tests/}
39 {[post_cmd]commands}
40 allowlist_externals={[post_cmd]allowlist_externals}
41
42 ###################
43 # genercic checks #
44 ###################
45
46 [testenv:flake8]
47 basepython=python3
48 deps=flake8
49 skip_install=True
50 commands=
51 flake8 {toxinidir}/cas_server
52 {[post_cmd]commands}
53 allowlist_externals={[post_cmd]allowlist_externals}
54
55 [testenv:check_rst]
56 basepython=python3
57 deps=
58 docutils
59 Pygments
60 skip_install=True
61 commands=
62 rst2html --strict {toxinidir}/README.rst /dev/null
63 rst2html --halt=warning {toxinidir}/CHANGELOG.rst /dev/null
64 {[post_cmd]commands}
65 allowlist_externals={[post_cmd]allowlist_externals}
66
67 [testenv:coverage]
68 basepython=python3
69 passenv=
70 COVERAGE_TOKEN
71 CI_BUILD_REF_NAME
72 TRAVIS_BRANCH
73 TRAVIS_PULL_REQUEST
74 deps=
75 -r{toxinidir}/requirements.txt
76 -r{toxinidir}/requirements-dev.txt
77 skip_install=True
78 commands=
79 py.test --cov=cas_server --cov-report term --cov-report html
80 git config --global --add safe.directory "{toxinidir}"
81 {toxinidir}/.update_coverage "{toxinidir}" "django-cas-server"
82 {[post_cmd]commands}
83 allowlist_externals=
84 {toxinidir}/.update_coverage
85 git
86 {[post_cmd]allowlist_externals}
87
88
89 ####################
90 # Python 2 support #
91 ####################
92
93 [testenv:py27-django111]
94 basepython=python2.7
95 deps =
96 Django>=1.11,<1.12
97 {[base]deps}
98
99 ##################################
100 # Generic Python 3 for local use #
101 ##################################
102
103 [testenv:py3-django111]
104 basepython=python3
105 deps =
106 Django>=1.11,<1.12
107 {[base]deps}
108
109 [testenv:py3-django22]
110 basepython=python3
111 deps =
112 Django>=2.2,<2.3
113 {[base]deps}
114
115 [testenv:py3-django32]
116 basepython=python3
117 deps =
118 Django>=3.2,<3.3
119 {[base]deps}
120
121 [testenv:py3-django42]
122 basepython=python3
123 deps =
124 Django>=4.2,<4.3
125 {[base]deps}
126
127 [testenv:py3-django52]
128 basepython=python3
129 deps =
130 Django>=5.2,<5.3
131 {[base]deps}
132
133 #########################
134 # Debian strech support #
135 #########################
136
137 [testenv:py35-django111]
138 basepython=python3.5
139 deps =
140 Django>=1.11,<1.12
141 {[base]deps}
142
143 ####################################
144 # Ubuntu bionic and EPEL 7 support #
145 ####################################
146
147 [testenv:py36-django111]
148 basepython=python3.6
149 deps =
150 Django>=1.11,<1.12
151 {[base]deps}
152
153 ##################
154 # RHEL 8 support #
155 ##################
156
157 [testenv:py36-django22]
158 basepython=python3.6
159 deps =
160 Django>=2.2,<3.0
161 {[base]deps}
162
163 #########################
164 # Debian buster support #
165 #########################
166
167 [testenv:py37-django111]
168 basepython=python3.7
169 deps =
170 Django>=1.11,<1.12
171 {[base]deps}
172
173 ########################
174 # Ubuntu focal support #
175 ########################
176
177 [testenv:py38-django22]
178 basepython=python3.8
179 deps =
180 Django>=2.2,<3.0
181 {[base]deps}
182
183 ###################
184 # Debian bullseye #
185 ###################
186
187 [testenv:py39-django22]
188 basepython=python3.9
189 deps =
190 Django>=2.2,<3.0
191 {[base]deps}
192
193 ################
194 # Ubuntu jammy #
195 ################
196
197 [testenv:py310-django32]
198 basepython=python3.10
199 deps =
200 Django>=3.2,<3.3
201 {[base]deps}
202
203
204 ###########################
205 # Debian bookworm support #
206 ###########################
207
208 [testenv:py311-django32]
209 basepython=python3.11
210 deps =
211 Django>=3.2,<3.3
212 {[base]deps}
213
214
215 ################
216 # Ubuntu noble #
217 ################
218
219 [testenv:py312-django42]
220 basepython=python3.12
221 deps =
222 Django>=4.2,<4.3
223 {[base]deps}
224
225
226 #######################################
227 # Django additional supported version #
228 #######################################
229
230 [testenv:py310-django52]
231 basepython=python3.10
232 deps =
233 Django>=5.2,<5.3
234 {[base]deps}
235
236 [testenv:py311-django52]
237 basepython=python3.11
238 deps =
239 Django>=5.2,<5.3
240 {[base]deps}
241
242 [testenv:py312-django52]
243 basepython=python3.12
244 deps =
245 Django>=5.2,<5.3
246 {[base]deps}
247
248 [testenv:py313-django52]
249 basepython=python3.13
250 deps =
251 Django>=5.2,<5.3
252 {[base]deps}