-
Notifications
You must be signed in to change notification settings - Fork 89
/
tox.ini
209 lines (197 loc) · 4.34 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
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
[tox]
envlist = flake,pylint,py311-coverage,py38-install
skipsdist = True
setenv = PIP_CONFIG_FILE=.pip.conf
allowlist_externals =
rm
bash
[testenv]
setenv =
CCACHE_DIR = {envdir}/.ccache
COMPILE_WITH_TESTS = true
LC_ALL = en_US.UTF-8
LANG = en_US.UTF-8
SCHEMA_PATH={toxinidir}/doc/api_schema.yaml
passenv =
DJANGO_LOG_LEVEL
CC
BUILD_COMPILE
allowlist_externals =
rm
ls
ln
bash
mkdir
commands =
-pip install -U pip
install: -pip uninstall polemarch -y
install: rm -rfv {envdir}/dist/
install: python setup.py bdist_wheel --dist-dir {envdir}/dist/
install: bash -c "export BUILD_COMPILE=true; pip install -U {envdir}/dist/$(ls {envdir}/dist)[test]"
coverage: python setup.py install_egg_info
coverage: pip install -U -e .[test]
install: rm -f {envdir}/tests.py {envdir}/tests.pyc
install: rm -rf {envdir}/test_data
install: ln -s {toxinidir}/test_data {envdir}/test_data
install: ln -s {toxinidir}/tests.py {envdir}/tests.py
install: python -m polemarch test -v 2 --failfast --parallel auto
coverage: coverage debug sys
coverage: coverage erase
coverage: coverage run -m polemarch test -v 2 --failfast --parallel auto {posargs}
coverage: coverage combine
coverage: coverage report
rm -rf .eggs build polemarch.egg-info {envdir}/dist
deps =
-rrequirements.txt
-rrequirements-git.txt
-rrequirements-test.txt
[testenv:flake]
basepython = python3.8
deps =
flake8
-rrequirements.txt
-rrequirements-git.txt
commands =
flake8 --config=.pep8 polemarch tests.py
[testenv:pylint]
basepython = python3.8
deps =
pylint==2.10.2
pylint-django==2.4.3
pylint-plugin-utils==0.6.0
-rrequirements.txt
-rrequirements-git.txt
commands =
pip uninstall polemarch -y
python setup.py install_egg_info
pip install -U -e .
pylint --rcfile=./.pylintrc {posargs} polemarch
[testenv:js_style]
changedir = ./
deps =
allowlist_externals = yarn
commands =
yarn install
yarn lint
[testenv:build]
basepython = python3.8
setenv =
LC_ALL = en_US.UTF-8
LANG = en_US.UTF-8
passenv = *
changedir = .
allowlist_externals =
tox
rm
commands =
rm -rf dist build
tox -c tox_build.ini -e py38-build,py38-wheel --workdir {toxworkdir}
[testenv:builddoc]
basepython = python3.11
changedir = ./doc/
allowlist_externals =
make
setenv =
READTHEDOCS = true
commands =
make html
; make latexpdf
deps =
-rrequirements-doc.txt
[testenv:build_for_docker]
basepython = python3.8
skipsdist = True
setenv =
CCACHE_DIR = {envdir}/.ccache
BUILD_OPTIMIZATION = true
BUILD_COMPILE = true
passenv = *
allowlist_externals = *
commands =
rm -frv {envdir}/dist
python setup.py compile_docs
python setup.py bdist_wheel --dist-dir {envdir}/dist/
bash -c "pip wheel $(find {envdir}/dist/* | head -1)[mysql,postgresql,ansible] -w wheels"
deps =
-rrequirements-doc.txt
pip>=20.2
wheel
cython
[testenv:release]
basepython = python3.8
toxworkdir = ./
passenv = *
setenv =
LC_ALL = en_US.UTF-8
LANG = en_US.UTF-8
allowlist_externals =
mkdir
ls
commands =
mkdir -p dist
ls -la dist
python setup.py githubrelease
deps =
githubrelease
[testenv:contrib]
basepython = python3.8
skipsdist = False
usedevelop = True
envdir = {toxinidir}/env
setenv =
CCACHE_DIR = {envdir}/.ccache
LC_ALL = en_US.UTF-8
LANG = en_US.UTF-8
passenv = *
allowlist_externals = *
commands =
python setup.py install_egg_info
pip install -U -e .[test]
deps =
cython>0.29,<0.30
tox~=3.25.0
pip~=21.3.1
-e .[test]
[testenv:deploy_env]
passenv = *
setenv =
LC_ALL = en_US.UTF-8
LANG = en_US.UTF-8
allowlist_externals =
/bin/sh
commands =
ansible-playbook -i localhost, --connection local k8s_env_deploy.yaml -vvvv
deps =
ansible~=2.9.0
openshift>=0.6
pyyaml>=3.11
docker
tox
[testenv:destroy_env]
passenv = *
setenv =
LC_ALL = en_US.UTF-8
LANG = en_US.UTF-8
allowlist_externals =
/bin/sh
commands =
ansible-playbook -i localhost, --connection local k8s_env_destroy.yaml -vvvv
deps =
ansible~=2.9.0
openshift>=0.6
pyyaml>=3.11
docker
tox
[testenv:release-docker]
passenv = *
setenv =
LC_ALL = en_US.UTF-8
LANG = en_US.UTF-8
allowlist_externals =
/usr/bin/bash
docker
git
./autobuild.sh
commands = bash ./autobuild.sh
deps =
docker-compose~=1.29.2