coats/tox.ini
Andreas Jaeger 07e41547b8 Update jobs
Remove tox-linters job, the default job now runs on bionic, so there's
no need to use an extra job. Replace it with the default job.

Replace obsolete build-openstack-sphinx-docs with new template
build-openstack-docs-pti which calls "tox -e docs" directly.
Update tox.ini for this to use python3.

Fix URL in docs to use new location of repo after OpenDev rename.

Change-Id: I8c46d95ae1156af01eb07fe7559bbf9e751cf055
2019-05-25 18:22:58 +02:00

48 lines
939 B
INI

[tox]
minversion = 2.3.1
envlist = linters,docs
skipsdist = True
skip_missing_interpreters = true
[testenv]
usedevelop = True
# avoid using deps= due to https://github.com/tox-dev/tox/issues/149
# hide deps from stdout https://github.com/tox-dev/tox/issues/601
list_dependencies_command=echo
sitepackages=False
setenv =
PIP_LOG={envdir}/pip.log
passenv =
CI
PIP_*
TRAVIS
TRAVIS_*
XDG_CACHE_HOME
envars =
PIP_DISABLE_PIP_VERSION_CHECK=1
PIP_USER=no
PATH={toxinidir}/node_modules/.bin:{env:PATH}
whitelist_externals =
bash
echo
find
grep
node
npm
rm
which
xargs
[testenv:docs]
basepython = python3
deps = -r{toxinidir}/doc/requirements.txt
commands = sphinx-build -b html -W doc/source doc/build/html
[testenv:linters]
commands=
pip install -q -r requirements.txt -r test-requirements.txt
python -m pre_commit run --all
npm install -y
npm run spell