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=pep8
|
||||||
- env: TOXENV=py27-pytest
|
- env: TOXENV=py27-pytest
|
||||||
- env: TOXENV=gnocchi
|
- env: TOXENV=gnocchi
|
||||||
|
- env: TOXENV=placement
|
||||||
- python: 3.5
|
- python: 3.5
|
||||||
env: TOXENV=py35
|
env: TOXENV=py35
|
||||||
- python: 3.5
|
- python: 3.5
|
||||||
@ -29,6 +30,7 @@ matrix:
|
|||||||
env: TOXENV=py36-pytest
|
env: TOXENV=py36-pytest
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- env: TOXENV=gnocchi
|
- env: TOXENV=gnocchi
|
||||||
|
- env: TOXENV=placement
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
irc: "chat.freenode.net#gabbi"
|
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
|
{envdir}/src/gnocchi/.tox/py27-gabbi/bin/pip install -U {toxinidir} # install gabbi
|
||||||
tox -e py27-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]
|
[testenv:docs]
|
||||||
commands =
|
commands =
|
||||||
rm -rf doc/build
|
rm -rf doc/build
|
||||||
|
Loading…
x
Reference in New Issue
Block a user