blob: f69881ed987afdb841b8bbcdbeaf4c43f8a3d3cc (
plain)
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
|
[tox]
envlist = docs,docs-linkcheck,pep8,pylint,py35
[testenv]
usedevelop = True
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
coverage erase
nosetests-3.4 --with-xunit \
--with-coverage \
--cover-tests \
--cover-package=apex \
--cover-xml \
--cover-min-percentage 95 \
{posargs}
coverage report
[testenv:pep8]
basepython = python3
commands = flake8 --exclude .build,build --ignore=F401
[testenv:py35]
basepython = python3
[testenv:docs]
deps = -rdocs/requirements.txt
commands =
sphinx-build -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
echo "Generated docs available in {toxinidir}/docs/_build/html"
whitelist_externals = echo
[testenv:docs-linkcheck]
deps = -rdocs/requirements.txt
commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
|