forked from saleor/saleor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
65 lines (57 loc) · 1.48 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
[tox]
envlist = py38-django{22,30,_master}
skipsdist = True
[testenv]
passenv =
CODECOV_* TOXENV CI TRAVIS TRAVIS_*
DATABASE_URL SECRET_KEY QUERIES_RESULTS_PATH
deps =
-rrequirements.txt
-rrequirements_dev.txt
commands =
django22: pip install "django>=2.2a1,<2.3" --upgrade --pre
django30: pip install "django>=3.0a1,<3.1" --upgrade --pre
django_master: pip install https://github.com/django/django/archive/master.tar.gz
python manage.py collectstatic --noinput --verbosity=0
pytest --cov --cov-report= --django-db-bench={env:QUERIES_RESULTS_PATH}
codecov
[testenv:black]
basepython = python3.8
deps =
black==19.3b0
commands =
black --check saleor tests
[testenv:flake8]
basepython = python3.8
deps =
flake8>=3.7.0
commands =
flake8 saleor tests
[testenv:pydocstyle]
basepython = python3.8
whitelist_externals = sh
deps =
pydocstyle>=4.0.0
commands =
sh -c 'find saleor -name "*.py" -type f | xargs pydocstyle -v'
[testenv:check_gql_schema]
basepython = python3.8
whitelist_externals = sh
commands =
sh -c './manage.py get_graphql_schema | diff saleor/graphql/schema.graphql -'
[testenv:check_migrations]
basepython = python3.8
whitelist_externals = psql
commands =
psql -c "CREATE DATABASE saleor;" -U postgres
python manage.py migrate
python manage.py makemigrations --dry-run --check
[travis]
python =
3.8: py38
unignore_outcomes = True
[travis:env]
DJANGO =
2.2: django22
3.0: django30
master: django_master