diff options
author | Monty Taylor <mordred@inaugust.com> | 2018-01-31 10:43:18 -0600 |
---|---|---|
committer | Monty Taylor <mordred@inaugust.com> | 2018-01-31 11:34:57 -0600 |
commit | 5dbfc60fdee9bcf98d53455b54ba7295e40f8705 (patch) | |
tree | 8e74fd55b7ab70ba7c4836cca90648a7f19d5f8f /tox.ini | |
parent | c9b8ead15ac25fa52992ac6c5762c7fcaa58fce1 (diff) | |
download | os-client-config-5dbfc60fdee9bcf98d53455b54ba7295e40f8705.tar.gz |
Split docs requirements and update tox.ini
Get ourselves up to date with the latest in PTI hotness.
Change-Id: Ied98273dcfa0b9622d603a8e9a8e2146fb1e081f
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 61 |
1 files changed, 44 insertions, 17 deletions
@@ -5,37 +5,64 @@ skipsdist = True [testenv] usedevelop = True -passenv = ZUUL_CACHE_DIR - REQUIREMENTS_PIP_LOCATION -install_command = {toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages} +passenv = UPPER_CONSTRAINTS_FILE +install_command = pip install -U {opts} {packages} setenv = - VIRTUAL_ENV={envdir} - BRANCH_NAME=master - CLIENT_NAME=os-client-config - OS_STDOUT_CAPTURE=1 - OS_STDERR_CAPTURE=1 - OS_TEST_TIMEOUT=60 -deps = -r{toxinidir}/test-requirements.txt -commands = python setup.py testr --slowest --testr-args='{posargs}' + VIRTUAL_ENV={envdir} + LANG=en_US.UTF-8 + LANGUAGE=en_US:en + LC_ALL=C + OS_STDOUT_CAPTURE=1 + OS_STDERR_CAPTURE=1 + OS_TEST_TIMEOUT=60 +deps = + -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} + -r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt +commands = stestr run {posargs} + stestr slowest [testenv:pep8] -commands = flake8 +usedevelop = False +skip_install = True +deps = + -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} + doc8 + hacking + pygments + readme +commands = + doc8 doc/source + python setup.py check -r -s + flake8 os_client_config [testenv:venv] commands = {posargs} [testenv:cover] -commands = python setup.py test --coverage --coverage-package-name=os_client_config --testr-args='{posargs}' +setenv = + {[testenv]setenv} + PYTHON=coverage run --source os_client_config --parallel-mode +commands = + stestr run {posargs} + coverage combine + coverage html -d cover + coverage xml -o cover/coverage.xml [testenv:docs] +skip_install = True deps = - {[testenv]deps} - readme + -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} + -r{toxinidir}/requirements.txt + -r{toxinidir}/doc/requirements.txt commands = - python setup.py build_sphinx - python setup.py check -r -s + sphinx-build -W -d doc/build/doctrees -b html doc/source/ doc/build/html [testenv:releasenotes] +skip_install = True +deps = + -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} + -r{toxinidir}/doc/requirements.txt commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html [flake8] |