-
Notifications
You must be signed in to change notification settings - Fork 7
/
tox.ini
41 lines (36 loc) · 1.03 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
[tox]
envlist = py27,pep8
minversion = 1.6
skipsdist = True
[testenv]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
install_command = pip install -U {opts} {packages}
commands=
{toxinidir}/tools/dirty_distribute_hack.sh
nosetests {posargs}
downloadcache = {toxworkdir}/_download
[testenv:pep8]
# Install bounded pep8/pyflakes first, then let flake8 install
deps = pep8==1.4.5
pyflakes==0.7.2
flake8==2.0
hacking>=0.5.6,<0.8
commands =
flake8
[flake8]
ignore = H301,H306,H506
builtins = _
exclude=.venv,.git,.tox,dist,doc,./ceilometer/openstack/common,*lib/python*,*egg,tools,nova_tests,build
show-source = True
[testenv:docs]
basepython=python
#changedir=docs
deps = sphinx
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
install_command = pip install -U {opts} {packages}
commands=
{toxinidir}/tools/dirty_distribute_hack.sh
sphinx-build -W -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html
downloadcache = {toxworkdir}/_download