diff --git a/.gitignore b/.gitignore index e43b0f9..addb2c1 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ .DS_Store +.tox +.idea +build diff --git a/.gitreview b/.gitreview new file mode 100644 index 0000000..28fa357 --- /dev/null +++ b/.gitreview @@ -0,0 +1,4 @@ +[gerrit] +host=review.openstack.org +port=29418 +project=openstack/charm-layer-ceph-base.git 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/test-requirements.txt b/test-requirements.txt new file mode 100644 index 0000000..095ec9c --- /dev/null +++ b/test-requirements.txt @@ -0,0 +1,2 @@ +flake8>=2.2.4,<=2.4.1 +os-testr>=0.4.1 diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..adc1255 --- /dev/null +++ b/tox.ini @@ -0,0 +1,45 @@ +[tox] +skipsdist = True +envlist = pep8 + +[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 /bin/echo + +[testenv:build] +commands = + /bin/echo 'WARNING: *build* target is for testing only.' + charm-build --log-level DEBUG -o {toxinidir}/build . + +[testenv:venv] +commands = {posargs} + +[testenv:py27] +basepython = python2.7 +deps = -r{toxinidir}/test-requirements.txt +# TODO: Need to write unit tests then remove the following command. +commands = /bin/true + +[testenv:py34] +basepython = python3.4 +deps = -r{toxinidir}/test-requirements.txt +# TODO: Need to write unit tests then remove the following command. +commands = /bin/true + +[testenv:py35] +basepython = python3.5 +deps = -r{toxinidir}/test-requirements.txt +# TODO: Need to write unit tests then remove the following command. +commands = /bin/true + +[testenv:pep8] +commands = /bin/true