forked from jazzband/django-analytical
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
64 lines (55 loc) · 1.2 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
[tox]
envlist =
# Python/Django combinations that are officially supported
py{27,34,35,36}-django111
py{35,36,37}-django{21,22}
flake8
bandit
readme
docs
clean
[testenv]
commands =
coverage run setup.py test
sh -c 'coveralls | true'
deps =
coverage
coveralls
django111: Django>=1.11,<2.0
django21: Django>=2.1,<2.2
django22: Django>=2.2,<3.0
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
whitelist_externals = sh
[testenv:bandit]
deps = bandit
commands = bandit -r --ini tox.ini
[testenv:clean]
deps = pyclean
commands =
py3clean -v {toxinidir}
rm -rf .tox/ django_analytical.egg-info/ build/ dist/ docs/_build/
whitelist_externals =
rm
[testenv:docs]
deps = sphinx
commands = sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html
whitelist_externals = make
[testenv:flake8]
deps = flake8
commands = flake8
[testenv:readme]
deps = twine
commands =
{envpython} setup.py -q sdist bdist_wheel
twine check dist/*
[travis:env]
DJANGO =
1.11: django111
2.1: django21
2.2: django22
[bandit]
exclude = .cache,.git,.tox,build,dist,docs,tests
targets = .
[flake8]
exclude = .cache,.git,.tox,build,dist
max-line-length = 100