From 8db407b2f1cc01aebf4f8dec8765b90401e90d7c Mon Sep 17 00:00:00 2001 From: Chris Dent Date: Mon, 17 Jul 2017 17:04:48 +0100 Subject: [PATCH] curl to tar to avoid the file having a location At least in travis it wasn't landing where expected so when trying to expand the archive a failure would occur. --- tox.ini | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index 9940e18..1bf470b 100644 --- a/tox.ini +++ b/tox.ini @@ -68,8 +68,7 @@ basepython = python2.7 deps = tox commands = -mkdir {envdir}/src -rm -r {envdir}/src/* - curl -o {envdir}/src/nova.tar.gz https://tarballs.openstack.org/nova/nova-master.tar.gz - tar -C {envdir}/src -zxv --strip-components 1 -f nova.tar.gz + 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 @@ -77,6 +76,8 @@ whitelist_externals = mkdir curl tar + rm + bash [testenv:docs] commands =