efa7c5ab7d
Pull arbitrary files into the build. Use swapable configs to specify source and dest. Remove echo used for testing. Clean up comments Clean up usage output Add missing semicolon Standardize arg handling Add flag to skip branch lookup & dl from non-git URLs Delete commented/obsolete lines Troubleshoot zuul -1: Failing on "grep '^\[testenv:pdf-docs\]' src/opendev.org/starlingx/docs/tox.ini" - this change does not touch tox.ini - other reviews are passing with the same tox file - removing new subdir named 'configs' on hunch that this may be a reserved name? - Adjust linters to relax line lenght restrition on yaml files Update target location for alarms and logs. Delete temporary events dl used in testing Signed-off-by: Ron Stone <ronald.stone@windriver.com> Change-Id: I8ffff95688bf9a3a93e7e5a01bacbf132abe312d
74 lines
1.9 KiB
INI
74 lines
1.9 KiB
INI
[tox]
|
|
envlist = docs,linters
|
|
minversion = 2.3
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
basepython = python3
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
OS_STDOUT_CAPTURE=1
|
|
OS_STDERR_CAPTURE=1
|
|
OS_TEST_TIMEOUT=60
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
|
|
[testenv:docs]
|
|
deps =
|
|
# -c{env:TOX_CONSTRAINTS_FILE:doc/upper-constraints.txt}
|
|
-r{toxinidir}/doc/requirements.txt
|
|
commands =
|
|
sphinx-build -a -E -W --keep-going -d doc/build/doctrees -t starlingx -t openstack -b html doc/source doc/build/html {posargs}
|
|
bash htmlChecks.sh doc/build/html
|
|
whitelist_externals = bash
|
|
htmlChecks.sh
|
|
|
|
[testenv:api-ref]
|
|
deps = {[testenv:docs]deps}
|
|
commands =
|
|
rm -rf api-ref/build
|
|
sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
|
|
whitelist_externals = rm
|
|
|
|
[testenv:linters]
|
|
whitelist_externals = bash
|
|
commands =
|
|
bash -c "find {toxinidir} \
|
|
\( -name .tox -prune \) \
|
|
-o -type f -name '*.yaml' \
|
|
-print0 | xargs -0 yamllint -d '\{extends: relaxed, rules: \{line-length: \{max: 260\}\}\}'"
|
|
# -print0 | xargs -0 yamllint"
|
|
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
|
|
[testenv:newfile]
|
|
passenv=PWD
|
|
commands =
|
|
bash -c "echo Running in {env:PWD}"
|
|
bash new-topic.sh {env:PWD} {toxinidir}
|
|
whitelist_externals = new-topic.sh
|
|
bash
|
|
|
|
[testenv:picks]
|
|
commands =
|
|
./pickCompare.sh
|
|
whitelist_externals = pickCompare.sh
|
|
bash
|
|
|
|
|
|
[testenv:linkcheck]
|
|
deps =
|
|
-r{toxinidir}/doc/requirements.txt
|
|
commands =
|
|
sphinx-build -a -E -W --keep-going -d doc/build/doctrees -t starlingx -t openstack -b linkcheck doc/source doc/build/linkcheck {posargs}
|
|
|
|
|
|
[testenv:spellcheck]
|
|
deps =
|
|
-r{toxinidir}/doc/requirements.txt
|
|
sphinxcontrib-spelling==7.3.2
|
|
commands =
|
|
sphinx-build -a -E --keep-going -d doc/build/doctrees -t starlingx -t openstack -t use_spellext -b spelling doc/source doc/build/spelling {posargs}
|
|
|