forked from wolph/django-admin-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
61 lines (52 loc) · 1.22 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
[tox]
envlist =
py{py,27}-django11,
py35-django{11,21,22},
py36-django{11,21,22},
py37-django{11,21,22},
py38-django{11,21,22},
flake8,
docs
skip_missing_interpreters = True
usedevelop = True
[testenv]
deps =
django11: Django<2.0
django21: Django>=2.1,<2.2
django22: Django>=2.2,<2.3
-r{toxinidir}/test_project/requirements.txt
envlist =
py{py,27}-django11,
py35-django{11,21,22},
py36-django{11,21,22},
py37-django{11,21,22},
py38-django{11,21,22}
commands =
python setup.py test
[testenv:flake8]
deps = flake8
commands = flake8 --ignore=W391 django_admin_generator {posargs}
[testenv:docs]
whitelist_externals =
rm
cd
mkdir
commands =
rm -f docs/project_name.rst
rm -f docs/modules.rst
mkdir -p docs/_static
sphinx-apidoc -o docs/ django_admin_generator
rm -f docs/modules.rst
sphinx-build -W -b html -d docs/_build/doctrees docs docs/_build/html {posargs}
deps = -r{toxinidir}/docs/requirements.txt
[testenv:coveralls]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
commands =
pip freeze
python setup.py test
coveralls
deps =
Django>=2.2,<2.3
django-safedelete==1.0.0
-r{toxinidir}/test_project/requirements.txt
coveralls