diff --git a/.gitignore b/.gitignore index 172bf57..14a1bfc 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .tox +build diff --git a/layer.yaml b/layer.yaml index dd35069..56aa403 100644 --- a/layer.yaml +++ b/layer.yaml @@ -1,3 +1,4 @@ includes: ['layer:openstack-principle', 'interface:mysql-shared', 'interface:rabbitmq', 'interface:keystone', 'interface:hacluster', 'interface:openstack-ha'] +repo: 'https://github.com/openstack/charm-layer-openstack' diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..5625389 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,5 @@ +# Requirements to build the layer +charm-tools +ruamel.yaml==0.10.12 +simplejson +flake8 diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..729f836 --- /dev/null +++ b/tox.ini @@ -0,0 +1,26 @@ +[tox] +skipsdist = True +envlist = pep8,build + +[testenv] +basepython = python2.7 +setenv = VIRTUAL_ENV={envdir} + PYTHONHASHSEED=0 + TERM=linux + JUJU_REPOSITORY={toxinidir}/build +passenv = http_proxy https_proxy +install_command = + pip install {opts} {packages} +deps = + -r{toxinidir}/requirements.txt +whitelist_externals = /bin/true + +[testenv:build] +commands = + charm-build --log-level DEBUG -o {toxinidir}/build . + +[testenv:venv] +commands = {posargs} + +[testenv:pep8] +commands = /bin/true