-
Notifications
You must be signed in to change notification settings - Fork 6
/
tox.ini
61 lines (56 loc) · 1.33 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{27}-dj{15,16,17,18,19}, py{33,34}-dj{15,16,17}, py{34,35}-dj{18,19}, flake8, sphinx, readme
[testenv]
basepython =
py27: python2.7
py33: python3.3
py34: python3.4
py35: python3.5
deps =
coverage
dj15: Django>=1.5,<1.6
dj16: Django>=1.6,<1.7
dj17: Django>=1.7,<1.8
dj18: Django>=1.8,<1.9
dj19: Django>=1.9,<1.10
nose
commands =
nosetests --with-doctest --no-path-adjustment --nocapture --with-coverage --cover-package=django_confit --cover-tests --all-modules --verbosity=2 {posargs:django_confit}
coverage erase
pip freeze
pip install -e demo
django-confit-demo test
pip freeze
[testenv:flake8]
basepython = python3.5
deps =
flake8
commands =
flake8 {posargs:django_confit}
[testenv:sphinx]
basepython = python3.5
deps =
Sphinx
commands =
pip install -e ./
make --directory=docs SPHINXOPTS='-W' clean {posargs:html doctest linkcheck}
whitelist_externals =
make
[testenv:readme]
basepython = python3.5
deps =
docutils
pygments
commands =
mkdir -p var/docs
rst2html.py --exit-status=2 README.rst var/docs/README.html
rst2html.py --exit-status=2 CONTRIBUTING.rst var/docs/CONTRIBUTING.html
whitelist_externals =
mkdir
[testenv:release]
basepython = python3.5
deps =
wheel
zest.releaser
commands =
fullrelease