forked from python-thumbnails/python-thumbnails
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
44 lines (39 loc) · 1000 Bytes
/
Copy pathtox.ini
File metadata and controls
44 lines (39 loc) · 1000 Bytes
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
[tox]
envlist =
flake8,isort,
pillow,wand,pgmagick,
django17,django18,redis,
coverage-report,
docs
skipsdist = True
[testenv]
basepython = python3
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}
DJANGO_SETTINGS_MODULE = tests.django_settings
commands =
coverage run -p --source thumbnails -m py.test -v
deps =
-r{toxinidir}/requirements.txt
django18: Django>=1.8,<1.9
django18: pytest-django
django19: Django>=1.9,<1.10
django19: pytest-django
redis: redis
wand: wand
pgmagick: pgmagick
[testenv:docs]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/docs
changedir = docs
commands = sphinx-build -T -b html -d {envtmpdir}/_build/doctrees . {envtmpdir}/_build/html
deps = -r{toxinidir}/docs/requirements.txt
[testenv:flake8]
deps = flake8
commands = flake8
[testenv:isort]
deps = isort
commands = isort -c -rc thumbnails tests
[testenv:coverage-report]
deps = coverage
commands = coverage combine && coverage report && coverage xml