forked from saleor/saleor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
56 lines (49 loc) · 1.24 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
[tox]
envlist = py{36,37}-django{22,_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
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.6
deps =
black>=19.3b0
commands =
black --check saleor tests
[testenv:flake8]
basepython = python3.6
deps =
flake8>=3.7.0
commands =
flake8 saleor tests
[testenv:check_gql_schema]
basepython = python3.6
whitelist_externals = sh
commands =
sh -c './manage.py get_graphql_schema | diff saleor/graphql/schema.graphql -'
[testenv:check_migrations]
basepython = python3.6
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.6: py36
3.7: py37
unignore_outcomes = True
[travis:env]
DJANGO =
2.2: django22
master: django_master