e0561271cf
In order to migrate the code base to the "OpenStack way": * Replace ConfigParser by oslo.config * Replace logging by oslo.log * Use testtools as base class for unit tests * Add tox -e genconfig to generate config file * Start to organize the file structure like other projects * Define 2 cli entry points almanach-collector and almanach-api * The docker-compose.yml is now used to run integration-tests * Integration tests will be moved to tempest in the future * Docker configs should be deprecated and moved to Kolla Change-Id: I89a89a92c7bdb3125cc568323db0f9488e1380db
28 lines
561 B
INI
28 lines
561 B
INI
[tox]
|
|
envlist = py27,py34,py35,pep8
|
|
|
|
[testenv]
|
|
deps =
|
|
-r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/requirements.txt
|
|
setenv =
|
|
PYTHONPATH = {toxinidir}
|
|
commands = nosetests --tests tests
|
|
|
|
[testenv:genconfig]
|
|
commands = oslo-config-generator --namespace almanach --output-file=etc/almanach/almanach.conf
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:pep8]
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
commands = flake8 {posargs}
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_sphinx --fresh-env
|
|
|
|
[flake8]
|
|
show-source = True
|
|
max-line-length = 120
|