diff --git a/.travis.yml b/.travis.yml index 870cc94..07beac5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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" diff --git a/tox.ini b/tox.ini index 63f4306..1bf470b 100644 --- a/tox.ini +++ b/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