forked from vstconsulting/polemarch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
155 lines (144 loc) · 3.27 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
[tox]
envlist = py{27,35,36,37}-{django111}-{coverage,install},flake,pylint
skipsdist = True
setenv = PIP_CONFIG_FILE=.pip.conf
whitelist_externals =
rm
bash
[testenv]
setenv = CCACHE_DIR = {envdir}/.ccache
passenv =
DJANGO_LOG_LEVEL
CC
whitelist_externals =
rm
bash
echo
commands =
install: make wheel PY=python COMPILE_DIR={envdir}/dist
install: bash -c "for i in `ls {envdir}/dist`; do pip install -U {envdir}/dist/$i; rm {envdir}/dist/$i; done"
coverage: python setup.py install_egg_info
coverage: pip install -U -e .
bash -c 'echo -ne "try: from yaml import CLoader; print(\"YAML with CLoader\")\nexcept: print(\"YAML without CLoader\")\n" | python'
install: pip freeze
install: rm -f {envdir}/tests.py {envdir}/tests.pyc
install: bash -c "cd {envdir} && ln -sv {toxinidir}/tests.py && polemarchctl test -v 2 --failfast --parallel=4"
coverage: coverage debug sys
coverage: coverage erase
coverage: coverage run -m polemarch test -v 2 --failfast --parallel=4 {posargs}
coverage: coverage combine
coverage: coverage report
rm -rf .eggs build polemarch.egg-info dist
install: pip uninstall polemarch -y
deps =
coverage: -rrequirements.txt
install: cython>=0.29.2
py27-install: multiprocessing
-rrequirements-doc.txt
-rrequirements-git.txt
-rrequirements-test.txt
[testenv:pep]
basepython = python3
deps =
pep8
commands =
pep8
[testenv:flake]
basepython = python3.6
deps =
flake8
-rrequirements.txt
-rrequirements-git.txt
commands =
flake8 --config=.pep8 polemarch
[testenv:pylint]
basepython = python3.6
deps =
pylint==2.3.0
pylint-django==2.0.6
pylint-plugin-utils==0.5
-rrequirements.txt
-rrequirements-git.txt
commands =
pylint --rcfile=./.pylintrc {posargs} polemarch
[testenv:selenium]
basepython = python3.6
passenv = DJANGO_LOG_LEVEL
changedir = ./
commands =
coverage debug sys
coverage erase
coverage run -m polemarch test -v 2 --failfast --noinput selenium_tests
coverage combine
coverage report
deps =
cython>=0.28,<0.30
selenium==3.14.1
-e .
-rrequirements-doc.txt
-rrequirements-git.txt
-rrequirements-test.txt
[testenv:build]
basepython = python3.6
passenv = *
changedir = .
whitelist_externals =
tox
rm
commands =
rm -rf dist build
tox -c tox_build.ini --workdir {toxworkdir}
[testenv:builddoc]
basepython = python3.6
changedir = ./doc/
whitelist_externals =
cp
make
commands =
pip install -U -r ../requirements-doc.txt
make html
# cp -rv _build/html ../public
deps =
-rrequirements-doc.txt
[testenv:release]
basepython = python3.6
toxworkdir = ./
passenv = *
whitelist_externals =
mkdir
ls
commands =
mkdir -p dist
ls -la dist
python setup.py githubrelease
deps =
githubrelease
[testenv:contrib]
basepython = python3.6
skipsdist = False
usedevelop = True
envdir = {toxinidir}/env
setenv = CCACHE_DIR = {envdir}/.ccache
passenv = *
whitelist_externals = *
commands =
python setup.py install_egg_info
pip install -U -e .[test]
deps =
cython>0.29,<0.30
tox==3.8.4
-e .[test]
[testenv:deploy]
passenv = *
commands =
make deploy
deps =
ansible~=2.7.0
openstacksdk
[testenv:destroy]
passenv = *
commands =
make destroy
deps =
ansible~=2.7.0
openstacksdk