forked from GaretJax/django-click
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
40 lines (36 loc) · 1 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
[tox]
# Having the .tox directory in the project directory slows down the
# `pip install -e .` step required by `usedevelop = true` considerably.
# By moving it out of the way (~500MB), we trim test execution time by > 80%.
toxworkdir = {homedir}/.toxenvs/django-click
envlist =
coverage_erase,
py{27,34,35,py}-dj{18,110},
py{27,34,35,36,py}-dj{111},
py{34,35,36}-dj{20},
flake8,
coverage_report
[testenv]
usedevelop = true
passenv = LC_ALL, LANG, LC_CTYPE
setenv =
DJANGO_SETTINGS_MODULE=testprj.settings
PYTHONPATH={toxinidir}/djclick/test/testprj
deps =
-rrequirements-test.txt
dj18: django>=1.8,<1.9
dj110: django>=1.10,<1.11
dj111: django>=1.11,<1.12
dj20: django>=2.0,<2.1
commands = py.test -rxs --cov-report= --cov-append --cov djclick {posargs:djclick}
[testenv:coverage_erase]
commands = coverage erase
deps = coverage
[testenv:flake8]
commands = flake8 djclick
deps = flake8
[testenv:coverage_report]
commands =
coverage report
coverage html
deps = coverage