2018-07-03 18:07:53 -05:00
|
|
|
[tox]
|
2018-10-12 16:11:47 -05:00
|
|
|
envlist = docs,linters
|
2023-01-04 15:22:21 +00:00
|
|
|
minversion = 2.9
|
2018-07-03 18:07:53 -05:00
|
|
|
skipsdist = True
|
|
|
|
|
|
|
|
[testenv]
|
2020-06-04 13:29:55 +02:00
|
|
|
basepython = python3
|
2018-07-03 18:07:53 -05:00
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
|
|
OS_STDOUT_CAPTURE=1
|
|
|
|
OS_STDERR_CAPTURE=1
|
|
|
|
OS_TEST_TIMEOUT=60
|
|
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
|
|
|
2018-07-18 14:39:57 -05:00
|
|
|
[testenv:docs]
|
|
|
|
deps =
|
2022-05-10 06:49:22 -04:00
|
|
|
# -c{env:TOX_CONSTRAINTS_FILE:doc/upper-constraints.txt}
|
2018-07-18 14:39:57 -05:00
|
|
|
-r{toxinidir}/doc/requirements.txt
|
|
|
|
commands =
|
2022-11-14 14:10:27 -05:00
|
|
|
git clean -dfx doc/source/fault-mgmt/
|
2022-11-24 09:31:02 -03:00
|
|
|
bash ./dirtyCheck.sh
|
2022-11-22 14:58:55 -05:00
|
|
|
bash ./get-remote-files.sh -c templates/events.sh -o file -f
|
2022-11-25 12:21:46 -05:00
|
|
|
python parser.py -l templates/alarms_template.rst -e tmp/events.yaml -s 100,200,300,400,500,700,800,900 -ts = -type Alarm -outputPath doc/source/fault-mgmt/kubernetes/ -sort Yes -product starlingx -replace "|,OR"
|
|
|
|
python parser.py -l templates/logs_template.rst -e tmp/events.yaml -s 100,200,300,400,500,700,800,900 -ts = -type Log -outputPath doc/source/fault-mgmt/kubernetes/ -sort Yes -product starlingx -replace "|,OR"
|
|
|
|
python parser.py -l templates/alarms_template.rst -e tmp/events.yaml -s 100,200,300,400,500,700,800,900 -ts = -type Alarm -outputPath doc/source/fault-mgmt/openstack/ -sort Yes -product openstack -replace "|,OR"
|
|
|
|
python parser.py -l templates/logs_template.rst -e tmp/events.yaml -s 100,200,300,400,500,700,800,900 -ts = -type Log -outputPath doc/source/fault-mgmt/openstack/ -sort Yes -product openstack -replace "|,OR"
|
2022-11-24 09:31:02 -03:00
|
|
|
bash ./normalize-includes.sh
|
2021-05-07 16:45:37 -04:00
|
|
|
sphinx-build -a -E -W --keep-going -d doc/build/doctrees -t starlingx -t openstack -b html doc/source doc/build/html {posargs}
|
2022-11-14 14:10:27 -05:00
|
|
|
git clean -dfx doc/source/fault-mgmt/
|
2022-11-24 09:31:02 -03:00
|
|
|
git restore doc/source/dist_cloud/kubernetes/*
|
2022-10-26 10:45:07 -04:00
|
|
|
bash hw-updates.sh
|
2022-04-28 12:11:49 -04:00
|
|
|
bash htmlChecks.sh doc/build/html
|
2023-01-13 13:48:38 +00:00
|
|
|
|
|
|
|
# Note: The dev env for the docs team uses a version of tox that does not yet support allowlist_externals
|
|
|
|
whitelist_externals = bash
|
2021-02-02 07:55:36 -05:00
|
|
|
htmlChecks.sh
|
2022-11-14 14:10:27 -05:00
|
|
|
get-remote-files.sh
|
|
|
|
git
|
2022-12-20 12:09:41 -05:00
|
|
|
# hw-updates.sh
|
2023-01-13 13:48:38 +00:00
|
|
|
|
2018-07-18 14:39:57 -05:00
|
|
|
|
2018-09-25 11:45:10 -05:00
|
|
|
[testenv:api-ref]
|
2020-06-04 13:29:55 +02:00
|
|
|
deps = {[testenv:docs]deps}
|
2018-09-25 11:45:10 -05:00
|
|
|
commands =
|
|
|
|
rm -rf api-ref/build
|
|
|
|
sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
|
2023-01-13 13:48:38 +00:00
|
|
|
whitelist_externals = rm
|
2018-09-25 11:45:10 -05:00
|
|
|
|
2018-07-03 18:07:53 -05:00
|
|
|
[testenv:linters]
|
2023-01-13 13:48:38 +00:00
|
|
|
whitelist_externals = bash
|
2018-07-03 18:07:53 -05:00
|
|
|
commands =
|
|
|
|
bash -c "find {toxinidir} \
|
|
|
|
\( -name .tox -prune \) \
|
|
|
|
-o -type f -name '*.yaml' \
|
2022-11-04 14:10:22 -04:00
|
|
|
-print0 | xargs -0 yamllint -d '\{extends: relaxed, rules: \{line-length: \{max: 260\}\}\}'"
|
|
|
|
# -print0 | xargs -0 yamllint"
|
|
|
|
|
2018-07-03 18:07:53 -05:00
|
|
|
|
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
2021-09-24 13:13:40 -04:00
|
|
|
|
|
|
|
|
|
|
|
[testenv:newfile]
|
|
|
|
passenv=PWD
|
|
|
|
commands =
|
|
|
|
bash -c "echo Running in {env:PWD}"
|
2021-12-21 07:08:16 -05:00
|
|
|
bash new-topic.sh {env:PWD} {toxinidir}
|
2023-01-13 13:48:38 +00:00
|
|
|
whitelist_externals = new-topic.sh
|
2021-09-24 13:13:40 -04:00
|
|
|
bash
|
2022-01-24 12:48:22 -05:00
|
|
|
|
2022-04-12 07:35:29 -04:00
|
|
|
[testenv:picks]
|
|
|
|
commands =
|
|
|
|
./pickCompare.sh
|
2023-01-13 13:48:38 +00:00
|
|
|
whitelist_externals = pickCompare.sh
|
2022-04-12 07:35:29 -04:00
|
|
|
bash
|
|
|
|
|
|
|
|
|
2022-01-24 12:48:22 -05:00
|
|
|
[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
|
2022-02-02 14:04:11 -05:00
|
|
|
sphinxcontrib-spelling==7.3.2
|
2022-01-24 12:48:22 -05:00
|
|
|
commands =
|
2022-02-02 14:04:11 -05:00
|
|
|
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}
|
2022-01-24 12:48:22 -05:00
|
|
|
|