forked from pennersr/django-allauth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
50 lines (45 loc) · 1.09 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
[tox]
envlist =
py27-django111
py34-django{111,20}
py35-django{111,20}
py36-django{111,20,master}
docs
flake8
standardjs
[testenv]
setenv =
PYTHONWARNINGS = all
deps =
coverage
py27: mock >= 1.0.1
django111: Django>=1.11,<2.0
django20: Django>=2.0a1,<2.1
djangomaster: https://github.com/django/django/archive/master.tar.gz
commands =
coverage run manage.py test allauth {posargs}
coverage report
coverage html
[testenv:docs]
skip_install = True
deps =
Sphinx
whitelist_externals = make
commands =
make -C {toxinidir}/docs html
[testenv:flake8]
skip_install = True
deps =
flake8
isort
commands =
flake8 --exclude=migrations {toxinidir}/allauth
/usr/bin/env bash -c "find {toxinidir}/allauth -name '*.py' -not -path '*/migrations/*' | xargs isort -c"
[testenv:standardjs]
skip_install = True
commands =
/usr/bin/env bash -c "mkdir -p {toxinidir}/node_modules"
/usr/bin/env npm install standard --no-lockfile --no-progress --non-interactive --silent
/usr/bin/env bash -c "find {toxinidir}/allauth -name '*.js' | xargs {toxinidir}/node_modules/.bin/standard"
[coverage:run]
include = allauth*