Merge pull request #217 from cdent/gabbi-nova
Add a tox target for testing against openstack placement
This commit is contained in:
commit
a84590a09e
@ -13,6 +13,7 @@ matrix:
|
||||
- env: TOXENV=pep8
|
||||
- env: TOXENV=py27-pytest
|
||||
- env: TOXENV=gnocchi
|
||||
- env: TOXENV=placement
|
||||
- python: 3.5
|
||||
env: TOXENV=py35
|
||||
- python: 3.5
|
||||
@ -29,6 +30,7 @@ matrix:
|
||||
env: TOXENV=py36-pytest
|
||||
allow_failures:
|
||||
- env: TOXENV=gnocchi
|
||||
- env: TOXENV=placement
|
||||
|
||||
notifications:
|
||||
irc: "chat.freenode.net#gabbi"
|
||||
|
16
tox.ini
16
tox.ini
@ -63,6 +63,22 @@ commands = tox -e py27-gabbi --notest # ensure a virtualenv is built
|
||||
{envdir}/src/gnocchi/.tox/py27-gabbi/bin/pip install -U {toxinidir} # install gabbi
|
||||
tox -e py27-gabbi
|
||||
|
||||
[testenv:placement]
|
||||
basepython = python2.7
|
||||
deps = tox
|
||||
commands = -mkdir {envdir}/src
|
||||
-rm -r {envdir}/src/*
|
||||
bash -c "curl https://tarballs.openstack.org/nova/nova-master.tar.gz | tar -C {envdir}/src -zxv --strip-components 1 -f - "
|
||||
tox -c {envdir}/src -e functional --notest # ensure a virtualenv is built
|
||||
{envdir}/src/.tox/functional/bin/pip install -U {toxinidir} # install gabbi
|
||||
tox -c {envdir}/src -e functional test_placement_api
|
||||
whitelist_externals =
|
||||
mkdir
|
||||
curl
|
||||
tar
|
||||
rm
|
||||
bash
|
||||
|
||||
[testenv:docs]
|
||||
commands =
|
||||
rm -rf doc/build
|
||||
|
Loading…
Reference in New Issue
Block a user