forked from jazzband/sorl-thumbnail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
46 lines (41 loc) · 1.76 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
;; Tox is a generic virtualenv management to run tests in different configurations.
[tox]
skipsdist = True
envlist = {py27,py33,py34,py35}-django18-{pil,imagemagick,graphicsmagick,redis,dynamodb,wand,pgmagick,dbm,vipsthumbnail},
{py27,py34,py35}-django110-{pil,imagemagick,graphicsmagick,redis,dynamodb,wand,pgmagick,dbm,vipsthumbnail},
{py27,py34,py35,py36}-django111-{pil,imagemagick,graphicsmagick,redis,dynamodb,wand,pgmagick,dbm,vipsthumbnail}
{py34,py35,py36}-django20-{pil,imagemagick,graphicsmagick,redis,dynamodb,wand,pgmagick,dbm,vipsthumbnail}
[testenv]
changedir = {toxinidir}/tests
deps = pytest
pytest-cov
coverage <= 3.7.1
pytest-django
Pillow
redis: redis
dynamodb: boto
pgmagick: pgmagick
wand: wand
django18: Django>=1.8,<1.9
django110: Django>=1.10a1,<1.11
django111: Django>=1.11a,<2.0
django20: Django>=2.0a1,<2.1
setenv = PYTHONPATH = {toxinidir}:{toxinidir}
pil: DJANGO_SETTINGS_MODULE=tests.settings.pil
imagemagick: DJANGO_SETTINGS_MODULE=tests.settings.imagemagick
graphicsmagick: DJANGO_SETTINGS_MODULE=tests.settings.graphicsmagick
vipsthumbnail: DJANGO_SETTINGS_MODULE=tests.settings.vipsthumbnail
redis: DJANGO_SETTINGS_MODULE=tests.settings.redis
dynamodb: DJANGO_SETTINGS_MODULE=tests.settings.dynamodb
wand: DJANGO_SETTINGS_MODULE=tests.settings.wand
pgmagick: DJANGO_SETTINGS_MODULE=tests.settings.pgmagick
dbm: DJANGO_SETTINGS_MODULE=tests.settings.dbm
commands = py.test -rw --cov-config setup.cfg --cov sorl
[testenv:flake8]
changedir = {toxinidir}
skip_install = True
deps =
flake8
flake8-bugbear
# flake8-import-order
commands = flake8 --show-source sorl/