This repository has been archived by the owner on Jan 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
79 lines (74 loc) · 2.11 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
[tox]
envlist = {py27,py33,py34,py35}-{unit,acceptance},docs,cidocs
[testenv]
deps =
cov-core
coverage==3.7.1
execnet
pep8
py
pytest
pytest-blockage
pytest-cache
pytest-cov
pytest-pep8
pytest-flakes
mock
freezegun
pyOpenSSL
pem
passenv=TRAVIS*
setenv =
TOXINIDIR={toxinidir}
TOXDISTDIR={distdir}
sitepackages = False
commands =
pip freeze
# unit tests
unit: py.test -rxs -vv --pep8 --flakes --blockage --cov-report term-missing --cov-report xml --cov-report html --cov-config {toxinidir}/.coveragerc --cov=vault_redirector -k 'not TestVaultRedirectorAcceptance' {posargs} vault_redirector
# acceptance tests
acceptance: py.test -rxs -vv -k TestVaultRedirectorAcceptance {posargs} vault_redirector
[testenv:docs]
# if you change this, change cidocs too
passenv = CI TRAVIS* CONTINUOUS_INTEGRATION
deps =
docutils
pygments
sphinx==1.3.6
sphinx_rtd_theme
pytest
mock
basepython = python2.7
commands =
pip freeze
rst2html.py --halt=2 README.rst /dev/null
sphinx-apidoc vault_redirector vault_redirector/tests -o {toxinidir}/docs/source -e -f -M
# link check
# -n runs in nit-picky mode
# -W turns warnings into errors
sphinx-build -a -n -W -b linkcheck {toxinidir}/docs/source {toxinidir}/docs/build/html
# build
sphinx-build -a -n -W -b html {toxinidir}/docs/source {toxinidir}/docs/build/html
[testenv:cidocs]
# error if we have changes to auto-generated API docs, as those need to be
# made locally
passenv = CI TRAVIS* CONTINUOUS_INTEGRATION
deps =
docutils
pygments
sphinx==1.3.6
sphinx_rtd_theme
pytest
mock
basepython = python2.7
commands =
pip freeze
rst2html.py --halt=2 README.rst /dev/null
sphinx-apidoc vault_redirector vault_redirector/tests -o {toxinidir}/docs/source -e -f -M
# link check
# -n runs in nit-picky mode
# -W turns warnings into errors
sphinx-build -a -n -W -b linkcheck {toxinidir}/docs/source {toxinidir}/docs/build/html
# build
sphinx-build -a -n -W -b html {toxinidir}/docs/source {toxinidir}/docs/build/html
{toxinidir}/docs/are_docs_changed.sh {toxinidir}/docs/source