Added tox.ini, gitreview and update README

Change-Id: If334c400bccb63782dac9cad2eff9d334ff3a01d
This commit is contained in:
Davanum Srinivas 2015-09-30 20:10:47 -04:00
parent 22e7d43d8f
commit 0a179bf682
5 changed files with 46 additions and 4 deletions

4
.gitreview Normal file
View File

@ -0,0 +1,4 @@
[gerrit]
host=review.openstack.org
port=29418
project=openstack/devstack-plugin-amqp1.git

View File

@ -1,2 +0,0 @@
# amqp1-devstack
Devstack plugin for AMQP 1.0 olso.messaging driver

15
README.rst Normal file
View File

@ -0,0 +1,15 @@
======================
Enabling in Devstack
======================
Devstack plugin for AMQP 1.0 olso.messaging driver
1. Download DevStack
2. Add this repo as an external repository::
cat > local.conf
[[local|localrc]]
enable_plugin amqp1 https://git.openstack.org/openstack/devstack-plugin-amqp1
3. run ``stack.sh``

View File

@ -204,8 +204,8 @@ function _iniset_qpid_backend {
# @TODO(kgiusti) why is "qpid_" part of the setting's name? Why isn't this generic??
iniset $file $section qpid_hostname ${AMQP1_HOST}
if [ -n "$AMQP1_USERNAME" ]; then
iniset $file $section qpid_username $AMQP1_USERNAME
iniset $file $section qpid_password $AMQP1_PASSWORD
iniset $file $section qpid_username $AMQP1_USERNAME
iniset $file $section qpid_password $AMQP1_PASSWORD
fi
}

25
tox.ini Normal file
View File

@ -0,0 +1,25 @@
[tox]
minversion = 1.6
skipsdist = True
envlist = bashate
[testenv]
usedevelop = False
install_command = pip install {opts} {packages}
[testenv:bashate]
deps = bashate
whitelist_externals = bash
commands = bash -c "find {toxinidir} \
-not \( -type d -name .?\* -prune \) \ # prune all 'dot' dirs
-not \( -type d -name doc -prune \) \ # skip documentation
-type f \ # only files
-not -name \*~ \ # skip editors, readme, etc
-not -name \*.md \
\( \
-name \*.sh -or \
-name \*rc -or \
-name functions\* -or \
-wholename \*/lib/\* \ # /lib files are shell, but
\) \ # have no extension
-print0 | xargs -0 bashate -v"