b64228a945
Alembic migrations were introduced to Barbican a while ago but have not been used recently. This CR revisits the migration logic and ensures that time-zero database tables creation is distinguished from Alembic-base schema updates. The associated database migration script is also revived, allowing for schema migrations outside of the Barbican boot process. Change-Id: I3e7fd7ac3f629da18329c22ad11cb9ccc1b7f9f9 Implements: blueprint db-revive-migrations
25 lines
630 B
INI
25 lines
630 B
INI
[tox]
|
|
envlist = pep8,py26,py27
|
|
|
|
[testenv]
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
commands =
|
|
python setup.py testr --coverage
|
|
coverage combine
|
|
coverage report -m
|
|
|
|
[testenv:coverage]
|
|
commands = coverage html {posargs:--include="*barbican*"}
|
|
|
|
[testenv:pep8]
|
|
commands = {toxinidir}/tools/hacking.sh {posargs}
|
|
|
|
[flake8]
|
|
# E711 ignored because of sqlalchemy override of == None
|
|
# H ignored because it's not H clean
|
|
ignore = E711,H
|
|
exclude = .git,.idea,.tox,bin,dist,debian,rpmbuild,tools,*.egg-info,*openstack/common,contrib,
|
|
functionaltests,*alembic_migrations/versions
|