Skip to content

Commit

Permalink
Merge pull request #217 from cdent/gabbi-nova
Browse files Browse the repository at this point in the history
Add a tox target for testing against openstack placement
  • Loading branch information
cdent committed Jul 20, 2017
2 parents 64f274d + 8db407b commit a84590a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -29,6 +30,7 @@ matrix:
env: TOXENV=py36-pytest
allow_failures:
- env: TOXENV=gnocchi
- env: TOXENV=placement

notifications:
irc: "chat.freenode.net#gabbi"
16 changes: 16 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a84590a

Please sign in to comment.