diff options
author | Marek Szwałkiewicz <marek.szwalkiewicz@external.t-mobile.pl> | 2023-04-14 13:52:30 +0200 |
---|---|---|
committer | Marek Szwałkiewicz <marek.szwalkiewicz@external.t-mobile.pl> | 2023-04-17 13:52:05 +0200 |
commit | b1884e6e8c00e9aa48816a80a3c0da465f8c7bab (patch) | |
tree | 077596a83e5c7f140f21932de85237fb9dc8c635 /tox.ini | |
parent | 2af8eed99a00371db238c1021fbe110df59fd476 (diff) |
Fix documentation tests and structure
Remove deprecated whitelist_externals from tox.ini and
move docs/source to docs/. to satisfy the doc-rules
Issue-ID: INT-2221
Change-Id: I3162eccd91685b98972277b1f8f41b923321889a
Signed-off-by: Marek Szwałkiewicz <marek.szwalkiewicz@external.t-mobile.pl>
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 19 |
1 files changed, 11 insertions, 8 deletions
@@ -6,16 +6,19 @@ requires = pip >= 8 [testenv] basepython = python3.8 -whitelist_externals = +allowlist_externals = git bash + /bin/bash + sh + /bin/sh deps = coala-bears nodeenv [testenv:json] commands_pre = - /bin/sh -c "git --no-pager diff HEAD HEAD^ --name-only '*.json' > /tmp/.coalist_json" + /bin/sh -c "git --no-pager diff HEAD^ HEAD --name-only '*.json' > /tmp/.coalist_json" commands = # '\ ' at the end of command is needed for a case where above command returns empty list (it adds empty file # parameter to '--files' opt @@ -23,7 +26,7 @@ commands = [testenv:yaml] commands_pre = - /bin/sh -c "git --no-pager diff HEAD HEAD^ --name-only '*.yaml' '*.yml' > /tmp/.coalist_yaml" + /bin/sh -c "git --no-pager diff HEAD^ HEAD --name-only '*.yaml' '*.yml' > /tmp/.coalist_yaml" commands = # '\ ' at the end of command is needed for a case where above command returns empty list (it adds empty file # parameter to '--files' opt @@ -31,26 +34,26 @@ commands = [testenv:py] commands_pre = - /bin/sh -c "git --no-pager diff HEAD HEAD^ --name-only '*.py' > /tmp/.coalist_py" + /bin/sh -c "git --no-pager diff HEAD^ HEAD --name-only '*.py' > /tmp/.coalist_py" commands = /bin/bash -c "coala --non-interactive --disable-caching --no-autoapply-warn py --files $(</tmp/.coalist_py) \ " [testenv:rst] commands_pre = - /bin/sh -c "git --no-pager diff HEAD HEAD^ --name-only '*.rst' > /tmp/.coalist_rst" + /bin/sh -c "git --no-pager diff HEAD^ HEAD --name-only '*.rst' > /tmp/.coalist_rst" deps = -r{toxinidir}/docs/requirements-docs.txt -chttps://git.onap.org/doc/plain/etc/upper-constraints.os.txt -chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt commands = - /bin/sh -c "sphinx-build -n -b html docs/source docs/build/html $(</tmp/.coalist_rst)" - /bin/sh -c "sphinx-build -n -b linkcheck docs/source docs/build/linkcheck $(</tmp/.coalist_rst)" + /bin/sh -c "sphinx-build -n -b html docs docs/build/html $(</tmp/.coalist_rst)" + /bin/sh -c "sphinx-build -n -b linkcheck docs docs/build/linkcheck $(</tmp/.coalist_rst)" [testenv:md] commands_pre = nodeenv -p --verbose npm install --global remark-cli - /bin/sh -c "git --no-pager diff HEAD HEAD^ --name-only '*.md' > /tmp/.coalist_md" + /bin/sh -c "git --no-pager diff HEAD^ HEAD --name-only '*.md' > /tmp/.coalist_md" commands = /bin/bash -c "coala --non-interactive --disable-caching --no-autoapply-warn md --files $(</tmp/.coalist_md) \ " |