forked from vstconsulting/polemarch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
129 lines (120 loc) · 2.88 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
[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"
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]
deps =
pep8
commands =
pep8
[testenv:flake]
deps =
flake8
-rrequirements.txt
-rrequirements-git.txt
commands =
flake8 --config=.pep8 polemarch
[testenv:pylint]
basepython = python2.7
deps =
pylint==1.6.5
pylint-django==0.7.2
pylint-plugin-utils==0.2.6
-rrequirements.txt
-rrequirements-git.txt
commands =
pylint --rcfile=./.pylintrc {posargs} polemarch
[testenv:selenium]
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]
passenv = *
changedir = .
whitelist_externals =
tox
rm
commands =
rm -rf dist build
tox -c tox_build.ini --workdir {toxworkdir} -e py27-build,py27-wheel,py35-wheel,py36-wheel
[testenv:builddoc]
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]
toxworkdir = ./
passenv = *
whitelist_externals =
mkdir
ls
commands =
mkdir -p dist
ls -la dist
python setup.py githubrelease
deps =
githubrelease
[testenv:contrib]
recreate = True
skipsdist = False
usedevelop = True
envdir = {toxinidir}/env
setenv = CCACHE_DIR = {envdir}/.ccache
passenv = *
whitelist_externals = *
deps =
cython>0.29,<0.30
tox==3.0.0