forked from jschneier/django-storages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
59 lines (56 loc) · 1.16 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
[tox]
minversion = 1.9
envlist =
py{35,36,37,38,39}-django22
py{36,37,38,39}-django30
py{36,37,38,39}-django31
py{36,37,38,39}-djangomain
integration
flake8
[testenv]
setenv =
DJANGO_SETTINGS_MODULE = tests.settings
PYTHONWARNINGS = always
PYTHONDONTWRITEBYTECODE = 1
commands = pytest --cov=storages --ignore=tests/integration/ tests/ {posargs}
deps =
django22: Django>=2.2,<3.0
django30: Django>=3.0,<3.1
django31: Django>=3.1,<3.2
djangomain: https://github.com/django/django/archive/main.tar.gz
cryptography
pytest
pytest-cov
rsa
extras =
azure
boto3
dropbox
google
libcloud
sftp
[testenv:integration]
ignore_errors = True
whitelist_externals =
docker
commands =
docker pull arafato/azurite
docker run --name azure-storage -d -t -p 10000:10000 -p 10001:10001 -p 10002:10002 arafato/azurite
pytest tests/integration/
docker stop azure-storage
docker rm azure-storage
setenv =
PYTHONDONTWRITEBYTECODE = 1
DJANGO_SETTINGS_MODULE = tests.integration.settings
deps =
pytest-django
extras =
azure
[testenv:flake8]
deps =
flake8
isort>=5.0.0
commands =
flake8
isort --check-only --diff .
skip_install = true