forked from shague/odltools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
37 lines (32 loc) · 900 Bytes
/
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
[tox]
envlist = flake8, py{27,34,35,36}
skipsdist = true
skip_missing_interpreters = {env:TOX_SKIP_MISSING_INTERPRETERS:True}
[testenv]
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = python -m unittest discover -v
basepython =
py27: python2.7
py34: python3.4
py35: python3.5
py36: python3.6
[testenv:flake8]
deps = flake8
commands = flake8
basepython = python2.7
skip_install = True
[flake8]
max-line-length = 119
exclude = build, dist, .tox, .github, *.egg
[testenv:docs]
deps = sphinx
basepython = python2.7
commands = sphinx-build -b html -d {envtmpdir}/doctrees {toxinidir}/docs {envtmpdir}/html
[testenv:docs-linkcheck]
deps = {[testenv:docs]deps}
basepython = python2.7
commands =
sphinx-build -b html -d {envtmpdir}/doctrees {toxinidir}/docs {envtmpdir}/html
sphinx-build -b linkcheck {toxinidir}/docs {envtmpdir}/html