diff options
Diffstat (limited to 'tox.ini')
| -rw-r--r-- | tox.ini | 69 |
1 files changed, 33 insertions, 36 deletions
@@ -1,14 +1,15 @@ [tox] minversion = 2.5.0 skipsdist = True -envlist = pep8,py37,py36,py27,pypy +envlist = pep8,py37,pypy [testenv] +basepython = python3 usedevelop=True whitelist_externals = find rm install_command = pip install {opts} {packages} -deps = -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} +deps = -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY @@ -20,11 +21,19 @@ commands = stestr run {posargs} stestr slowest +[testenv:py36] +basepython = python3.6 + +[testenv:py37] +basepython = python3.7 + +[testenv:pypy] +basepython = pypy + [testenv:debug] commands = oslo_debug_helper -t kolla/tests {posargs} [testenv:cover] -basepython = python3 setenv = VIRTUAL_ENV={envdir} NOSE_WITH_COVERAGE=1 NOSE_COVER_BRANCHES=1 @@ -39,7 +48,6 @@ commands = coverage report --show-missing [testenv:pep8] -basepython = python3 deps = {[testenv]deps} yamllint @@ -55,29 +63,29 @@ commands = commands = bandit -r docker kolla tests tools [testenv:venv] -basepython = python3 deps = - -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} + -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -r{toxinidir}/test-requirements.txt -r{toxinidir}/doc/requirements.txt commands = {posargs} [testenv:docs] -basepython = python3 deps = - -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} + -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -r{toxinidir}/requirements.txt -r{toxinidir}/doc/requirements.txt commands = rm -rf doc/build doc8 doc - sphinx-build -W -b html doc/source doc/build/html + sphinx-build -W --keep-going -b html doc/source doc/build/html -[testenv:setupenv] +[testenv:pdf-docs] +whitelist_externals = make +deps = {[testenv:docs]deps} commands = - {toxinidir}/tools/setup_gate.sh - {toxinidir}/tools/dump_info.sh + sphinx-build -W --keep-going -b latex doc/source doc/build/pdf + make -C doc/build/pdf [testenv:build-centos-binary] whitelist_externals = find @@ -88,7 +96,6 @@ commands = find . -type f -name "*.py[c|o]" -delete -o -type l -name "*.py[c|o]" -delete bash -c "if [ ! -d .stestr ]; then stestr init; fi" stestr run test_build.BuildTestCentosBinary - {toxinidir}/tools/dump_info.sh [testenv:build-centos-source] whitelist_externals = find @@ -99,9 +106,8 @@ commands = find . -type f -name "*.py[c|o]" -delete -o -type l -name "*.py[c|o]" -delete bash -c "if [ ! -d .stestr ]; then stestr init; fi" stestr run test_build.BuildTestCentosSource - {toxinidir}/tools/dump_info.sh -[testenv:build-ubuntu-binary] +[testenv:build-centos8-binary] whitelist_externals = find bash setenv = @@ -109,10 +115,9 @@ setenv = commands = find . -type f -name "*.py[c|o]" -delete -o -type l -name "*.py[c|o]" -delete bash -c "if [ ! -d .stestr ]; then stestr init; fi" - stestr run test_build.BuildTestUbuntuBinary - {toxinidir}/tools/dump_info.sh + stestr run test_build.BuildTestCentos8Binary -[testenv:build-ubuntu-source] +[testenv:build-centos8-source] whitelist_externals = find bash setenv = @@ -120,10 +125,9 @@ setenv = commands = find . -type f -name "*.py[c|o]" -delete -o -type l -name "*.py[c|o]" -delete bash -c "if [ ! -d .stestr ]; then stestr init; fi" - stestr run test_build.BuildTestUbuntuSource - {toxinidir}/tools/dump_info.sh + stestr run test_build.BuildTestCentos8Source -[testenv:build-debian-binary] +[testenv:build-ubuntu-binary] whitelist_externals = find bash setenv = @@ -131,10 +135,9 @@ setenv = commands = find . -type f -name "*.py[c|o]" -delete -o -type l -name "*.py[c|o]" -delete bash -c "if [ ! -d .stestr ]; then stestr init; fi" - stestr run test_build.BuildTestDebianBinary - {toxinidir}/tools/dump_info.sh + stestr run test_build.BuildTestUbuntuBinary -[testenv:build-debian-source] +[testenv:build-ubuntu-source] whitelist_externals = find bash setenv = @@ -142,10 +145,9 @@ setenv = commands = find . -type f -name "*.py[c|o]" -delete -o -type l -name "*.py[c|o]" -delete bash -c "if [ ! -d .stestr ]; then stestr init; fi" - stestr run test_build.BuildTestDebianSource - {toxinidir}/tools/dump_info.sh + stestr run test_build.BuildTestUbuntuSource -[testenv:build-oraclelinux-binary] +[testenv:build-debian-binary] whitelist_externals = find bash setenv = @@ -153,10 +155,9 @@ setenv = commands = find . -type f -name "*.py[c|o]" -delete -o -type l -name "*.py[c|o]" -delete bash -c "if [ ! -d .stestr ]; then stestr init; fi" - stestr run test_build.BuildTestOracleLinuxBinary - {toxinidir}/tools/dump_info.sh + stestr run test_build.BuildTestDebianBinary -[testenv:build-oraclelinux-source] +[testenv:build-debian-source] whitelist_externals = find bash setenv = @@ -164,8 +165,7 @@ setenv = commands = find . -type f -name "*.py[c|o]" -delete -o -type l -name "*.py[c|o]" -delete bash -c "if [ ! -d .stestr ]; then stestr init; fi" - stestr run test_build.BuildTestOracleLinuxSource - {toxinidir}/tools/dump_info.sh + stestr run test_build.BuildTestDebianSource [testenv:genconfig] whitelist_externals = which @@ -173,14 +173,12 @@ commands= oslo-config-generator --config-file etc/oslo-config-generator/kolla-build.conf [testenv:releasenotes] -basepython = python3 deps = -r{toxinidir}/doc/requirements.txt commands = rm -rf releasenotes/build - sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html + sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html [testenv:bindep] -basepython = python3 # Do not install any requirements. We want this to be fast and work even if # system dependencies are missing, since it's used to tell you what system # dependencies are missing! This also means that bindep must be installed @@ -197,7 +195,6 @@ exclude=.eggs,.git,.tox,doc local-check-factory = kolla.hacking.checks.factory [testenv:lower-constraints] -basepython = python3 deps = -c{toxinidir}/lower-constraints.txt -r{toxinidir}/test-requirements.txt |
