forked from pinax/pinax-stripe-light
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
66 lines (60 loc) · 1.62 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
66
[flake8]
ignore = E265,E501
max-line-length = 100
max-complexity = 10
exclude = pinax/stripe/migrations/*,docs/*
inline-quotes = double
[coverage:run]
source = pinax
omit = pinax/stripe/conf.py,pinax/stripe/tests/*,pinax/stripe/migrations/*
branch = true
data_file = .coverage
[coverage:report]
omit = pinax/stripe/conf.py,pinax/stripe/tests/*,pinax/stripe/migrations/*
show_missing = True
[tox]
envlist =
checkqa
py27-dj{18,110,111}{,-pytest}
py34-dj{18,110,111,20}{,-pytest}
py35-dj{18,110,111,20}{,-pytest}
py36-dj{111,20}{,-pytest}
[testenv]
passenv =
CI CIRCLECI CIRCLE_*
PINAX_STRIPE_DATABASE_ENGINE
PINAX_STRIPE_DATABASE_HOST
PINAX_STRIPE_DATABASE_NAME
PINAX_STRIPE_DATABASE_USER
deps =
coverage
codecov
dj18: Django>=1.8,<1.9
dj110: Django>=1.10,<1.11
dj111: Django>=1.11a1,<2.0
dj20: Django<2.1
master: https://github.com/django/django/tarball/master
postgres: psycopg2
extras =
pytest: pytest
usedevelop = True
setenv =
DJANGO_SETTINGS_MODULE=pinax.stripe.tests.settings
pytest: _STRIPE_TEST_RUNNER=-m pytest
postgres: PINAX_STRIPE_DATABASE_ENGINE={env:PINAX_STRIPE_DATABASE_ENGINE:django.db.backends.postgresql_psycopg2}
commands =
coverage run {env:_STRIPE_TEST_RUNNER:setup.py test} {posargs}
coverage report -m --skip-covered
[testenv:checkqa]
commands =
flake8 pinax
deps =
flake8 == 3.4.1
flake8-isort == 2.2.2
flake8-quotes == 0.11.0
[testenv:check_migrated]
setenv =
DJANGO_SETTINGS_MODULE=pinax.stripe.tests.settings
passenv =
commands =
django-admin makemigrations --check -v3 --dry-run --noinput pinax_stripe