tox.ini (nova-22.0.0) | : | tox.ini (nova-22.0.1) | ||
---|---|---|---|---|
skipping to change at line 29 | skipping to change at line 29 | |||
VIRTUAL_ENV={envdir} | VIRTUAL_ENV={envdir} | |||
LANGUAGE=en_US | LANGUAGE=en_US | |||
LC_ALL=en_US.utf-8 | LC_ALL=en_US.utf-8 | |||
OS_STDOUT_CAPTURE=1 | OS_STDOUT_CAPTURE=1 | |||
OS_STDERR_CAPTURE=1 | OS_STDERR_CAPTURE=1 | |||
OS_TEST_TIMEOUT=160 | OS_TEST_TIMEOUT=160 | |||
PYTHONDONTWRITEBYTECODE=1 | PYTHONDONTWRITEBYTECODE=1 | |||
# TODO(stephenfin): Remove psycopg2 when minimum constraints is bumped to 2.8 | # TODO(stephenfin): Remove psycopg2 when minimum constraints is bumped to 2.8 | |||
PYTHONWARNINGS = ignore::UserWarning:psycopg2 | PYTHONWARNINGS = ignore::UserWarning:psycopg2 | |||
deps = | deps = | |||
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/m aster} | -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/v ictoria} | |||
-r{toxinidir}/requirements.txt | -r{toxinidir}/requirements.txt | |||
-r{toxinidir}/test-requirements.txt | -r{toxinidir}/test-requirements.txt | |||
passenv = | passenv = | |||
OS_DEBUG GENERATE_HASHES | OS_DEBUG GENERATE_HASHES | |||
# there is also secret magic in subunit-trace which lets you run in a fail only | # there is also secret magic in subunit-trace which lets you run in a fail only | |||
# mode. To do this define the TRACE_FAILONLY environmental variable. | # mode. To do this define the TRACE_FAILONLY environmental variable. | |||
commands = | commands = | |||
stestr run {posargs} | stestr run {posargs} | |||
env TEST_OSPROFILER=1 stestr run --combine --no-discover 'nova.tests.unit.test _profiler' | env TEST_OSPROFILER=1 stestr run --combine --no-discover 'nova.tests.unit.test _profiler' | |||
stestr slowest | stestr slowest | |||
skipping to change at line 176 | skipping to change at line 176 | |||
-r{toxinidir}/doc/requirements.txt | -r{toxinidir}/doc/requirements.txt | |||
commands = | commands = | |||
{posargs} | {posargs} | |||
[testenv:docs] | [testenv:docs] | |||
description = | description = | |||
Build main documentation. | Build main documentation. | |||
# Note that we don't use {[testenv]deps} for deps here because we don't want | # Note that we don't use {[testenv]deps} for deps here because we don't want | |||
# to install (test-)requirements.txt for docs. | # to install (test-)requirements.txt for docs. | |||
deps = | deps = | |||
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/m aster} | -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/v ictoria} | |||
-r{toxinidir}/doc/requirements.txt | -r{toxinidir}/doc/requirements.txt | |||
commands = | commands = | |||
rm -rf doc/build/html doc/build/doctrees | rm -rf doc/build/html doc/build/doctrees | |||
# Check that all JSON files don't have \r\n in line. | # Check that all JSON files don't have \r\n in line. | |||
bash -c "! find doc/ -type f -name *.json | xargs grep -U -n $'\r'" | bash -c "! find doc/ -type f -name *.json | xargs grep -U -n $'\r'" | |||
# Check that all included JSON files are valid JSON | # Check that all included JSON files are valid JSON | |||
bash -c '! find doc/ -type f -name *.json | xargs -t -n1 python -m json.tool 2 >&1 > /dev/null | grep -B1 -v ^python' | bash -c '! find doc/ -type f -name *.json | xargs -t -n1 python -m json.tool 2 >&1 > /dev/null | grep -B1 -v ^python' | |||
sphinx-build -W --keep-going -b html -d doc/build/doctrees doc/source doc/buil d/html | sphinx-build -W --keep-going -b html -d doc/build/doctrees doc/source doc/buil d/html | |||
# Test the redirects. This must run after the main docs build | # Test the redirects. This must run after the main docs build | |||
whereto doc/build/html/.htaccess doc/test/redirect-tests.txt | whereto doc/build/html/.htaccess doc/test/redirect-tests.txt | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added |