Add .gitreview
Add .gitreview file to point at openStack gerrit Bring tox.ini and requirements mostly inline with other reactive charms. tox.ini has to deviate slightly as charm currently has no src dir. Change-Id: I9184847409a884699d3b51641e19cbd9d30634fa
This commit is contained in:
parent
ebb5635d4e
commit
e40a910cd9
|
@ -0,0 +1,4 @@
|
|||
[gerrit]
|
||||
host=review.openstack.org
|
||||
port=29418
|
||||
project=openstack/charm-vault.git
|
|
@ -1,6 +1,8 @@
|
|||
# Unit test requirements
|
||||
flake8>=2.2.4,<=2.4.1
|
||||
os-testr>=0.4.1
|
||||
charms.reactive
|
||||
mock>=1.2
|
||||
coverage>=3.6
|
||||
psycopg2
|
||||
charms.reactive
|
||||
git+https://github.com/openstack/charms.openstack#egg=charms.openstack
|
||||
|
|
37
tox.ini
37
tox.ini
|
@ -1,6 +1,9 @@
|
|||
# Source charm: ./tox.ini
|
||||
# This file is managed centrally by release-tools and should not be modified
|
||||
# within individual charm repos.
|
||||
[tox]
|
||||
skipsdist = True
|
||||
envlist = pep8,unit-tests
|
||||
envlist = pep8,py34,py35
|
||||
skip_missing_interpreters = True
|
||||
|
||||
[testenv]
|
||||
|
@ -18,27 +21,37 @@ deps =
|
|||
|
||||
[testenv:build]
|
||||
basepython = python2.7
|
||||
# Update when charm moves to src subdir
|
||||
commands =
|
||||
charm-build --log-level DEBUG -o {toxinidir}/build . {posargs}
|
||||
|
||||
[testenv:pep8]
|
||||
basepython = python3
|
||||
deps = -r{toxinidir}/test-requirements.txt
|
||||
commands = flake8 --exclude build {posargs} .
|
||||
[testenv:py27]
|
||||
basepython = python2.7
|
||||
# Reactive source charms are Python3-only, but a py27 unit test target
|
||||
# is required by OpenStack Governance. Remove this shim as soon as
|
||||
# permitted. http://governance.openstack.org/reference/cti/python_cti.html
|
||||
whitelist_externals = true
|
||||
commands = true
|
||||
|
||||
[testenv:unit-tests]
|
||||
basepython = python3
|
||||
[testenv:py34]
|
||||
basepython = python3.4
|
||||
deps = -r{toxinidir}/test-requirements.txt
|
||||
commands = ostestr {posargs}
|
||||
|
||||
[testenv:py35]
|
||||
basepython = python3.5
|
||||
deps = -r{toxinidir}/test-requirements.txt
|
||||
commands = ostestr {posargs}
|
||||
|
||||
[testenv:pep8]
|
||||
basepython = python3.5
|
||||
deps = -r{toxinidir}/test-requirements.txt
|
||||
# Update when charm moves to src subdir
|
||||
commands = flake8 --exclude build {posargs} .
|
||||
|
||||
[testenv:venv]
|
||||
commands = {posargs}
|
||||
|
||||
[flake8]
|
||||
# E402 ignore necessary for path append before sys module import in actions
|
||||
ignore = E402
|
||||
|
||||
[testenv:charm-proof]
|
||||
basepython = python2.7
|
||||
toxworkdir = {toxinidir}/build/builds/vault
|
||||
commands = charm-proof
|
||||
|
|
Loading…
Reference in New Issue