b285d3dd9c
Currently the code in this repo is half modular have series of scripts. Migrate the code to be more modular. The main benefit to this is testing is easier. Testing is added in a followup patch Change-Id: Ic1262436147ecdb818ee259e2e85fca8df09d722
29 lines
762 B
INI
29 lines
762 B
INI
[tox]
|
|
envlist = docs,linters,py34,py27
|
|
minversion = 2.0
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install -U {opts} {packages}
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
# NOTE: If py34 fails with "db type could not be determined", delete
|
|
# .testrepository and try again. Running py34 before py27 is OK, but not the
|
|
# other way around. See: https://bugs.launchpad.net/testrepository/+bug/1212909
|
|
commands = python setup.py testr --slowest --testr-args="{posargs}"
|
|
|
|
[testenv:linters]
|
|
commands = yamllint events.yaml
|
|
flake8
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_sphinx
|
|
|
|
[flake8]
|
|
exclude=.tox,doc/source/conf.py
|