forked from py-pa/django-minio-storage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
65 lines (58 loc) · 1.36 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
[pytest]
python_paths = ./tests
changedir = ./tests
DJANGO_SETTINGS_MODULE = django_minio_storage_tests.settings
addopts=--tb=short
python_files = tests.py test_*.py *_tests.py
[travis]
python =
2.7: py27
3.4: py34
3.5: py35
3.6: py36, lint, isort, docs
[travis:env]
DJANGO =
1.9: django19
1.10: django110
1.11: django111, lint, isort, docs
[testenv]
commands = pytest
setenv =
PYTHONDONTWRITEBYTECODE=1
MINIO_STORAGE_ENDPOINT=localhost:9153
MINIO_STORAGE_ACCESS_KEY=weak_access_key
MINIO_STORAGE_SECRET_KEY=weak_secret_key
TOX_ENVNAME={envname}
deps =
django19: Django>=1.9,<1.10
django110: Django>=1.10,<1.11
django111: Django>=1.11,<2.0
django2: Django>=2.0,<2.1
minio: minio
minioknown: minio==4.0.3
-rdev-requirements.txt
[testenv:isort]
setenv=
PYTHONWARNINGS=ignore
basepython = python3.6
deps =
isort==4.3.4
-rdev-requirements.txt
commands = isort -df -rc -c
[testenv:lint]
setenv=
PYTHONWARNINGS=ignore
basepython = python3.6
deps = flake8==3.5.0
commands = flake8 --config .flake8rc
[testenv:docs]
basepython = python3.6
deps = mkdocs
commands = mkdocs build
[tox]
envlist =
{py27,py34,py35}-django{19,110,111}-minioknown,
py36-django{111,2}-minio{,known},
lint,
isort,
docs,