Add pypy test Scenario for Swift

New func_pypy test scenario whcih will run Swift under pypy. This will
start off as experimental but would be good to have added to the gate
permanently.

Change-Id: Iaddfcb4c165e8c7b7265c2e3058268505d2d41bf
This commit is contained in:
Andy McCrae 2016-08-08 16:47:19 -05:00
parent 9d81f521d2
commit c926f33c47
2 changed files with 19 additions and 1 deletions

View File

@ -33,7 +33,7 @@ pip install tox
# run through each tox env and execute the test
for tox_env in $(awk -F= '/envlist/ {print $2}' tox.ini | sed 's/,/ /g'); do
if [ "${tox_env}" != "functional" ]; then
if [[ "${tox_env}" != "functional" ]] && [[ ${tox_env} != "func_*" ]]; then
tox -e ${tox_env}
elif [ "${tox_env}" == "functional" ]; then
if ${FUNCTIONAL_TEST}; then

18
tox.ini
View File

@ -160,6 +160,7 @@ commands =
# NOTE(odyssey4me): this target does not use constraints because
# it doesn't work in OpenStack-CI yet. Once that's fixed, we can
# drop the install_command.
# NOTE(andymccr): this will test standard Swift install.
install_command =
pip install -U --force-reinstall {opts} {packages}
deps =
@ -174,6 +175,23 @@ commands =
{toxinidir}/tests/test.yml -vvvv
# NOTE(andymccr): this will test Swift running in pypy.
[testenv:func_pypy]
install_command =
pip install -U --force-reinstall {opts} {packages}
deps =
{[testenv:ansible]deps}
setenv =
{[testenv:ansible]setenv}
commands =
{[testenv:ansible]commands}
ansible-playbook -i {toxinidir}/tests/inventory \
-e "rolename={toxinidir}" \
-e "install_test_packages=True" \
-e "swift_pypy_enabled=True" \
{toxinidir}/tests/test.yml -vvvv
[testenv:linters]
deps =
{[testenv:ansible]deps}