From 4457c3fad9f060f18616a943eb7036636b5c9c11 Mon Sep 17 00:00:00 2001 From: tischrei Date: Wed, 17 Jan 2024 13:36:34 +0000 Subject: [PATCH] Update tox.ini && conf.py file Reviewed-by: Gode, Sebastian Co-authored-by: tischrei Co-committed-by: tischrei --- doc/requirements.txt | 3 ++- tox.ini | 21 ++++++++++++++++++++- zuul.yaml | 8 ++++++-- 3 files changed, 28 insertions(+), 4 deletions(-) diff --git a/doc/requirements.txt b/doc/requirements.txt index c022286..492834a 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -7,4 +7,5 @@ reno>=3.1.0 # Apache-2.0 otc-sphinx-directives>=0.1.0 sphinx-minify>=0.0.1 # Apache-2.0 -git+https://gitea.eco.tsi-dev.otc-service.com/infra/otc-metadata.git#egg=otc_metadata \ No newline at end of file +git+https://gitea.eco.tsi-dev.otc-service.com/infra/otc-metadata.git#egg=otc_metadata +setuptools \ No newline at end of file diff --git a/tox.ini b/tox.ini index 361dbae..863b623 100644 --- a/tox.ini +++ b/tox.ini @@ -45,15 +45,19 @@ commands = {[testenv:json-umn]commands} [testenv:docs-pdf] -deps = {[testenv:docs]deps} +deps = + {[testenv:docs]deps} + {[testenv:bindeps]deps} allowlist_externals = rm mkdir + wget make bash cp commands = mkdir -p doc/build/pdf + {[testenv:bindeps]commands} {[testenv:api-ref-pdf-docs]commands} {[testenv:best-practice-pdf-docs]commands} {[testenv:umn-pdf-docs]commands} @@ -198,6 +202,21 @@ commands = +[testenv:bindeps] +deps = + bindep +allowlist_externals = + wget + rm + bash +commands = + rm -rf {toxinidir}/bindep.txt + rm -rf {toxinidir}/packages.txt + wget -O {toxinidir}/bindep.txt https://raw.githubusercontent.com/opentelekomcloud/otcdocstheme/main/bindep.txt + bash -c "bindep test -b -f {toxinidir}/bindep.txt > {toxinidir}/packages.txt || true" + bash -c 'if [ -s {toxinidir}/packages.txt ]; then if command -v apt &>/dev/null; then apt update && xargs apt install --no-install-recommends -y < {toxinidir}/packages.txt; fi; fi' + bash -c 'if [ -s {toxinidir}/packages.txt ]; then if command -v dnf &>/dev/null; then dnf install -y $(cat {toxinidir}/packages.txt); fi; fi' + [doc8] ignore = D001 extensions = .rst, .yaml \ No newline at end of file diff --git a/zuul.yaml b/zuul.yaml index aa85cc4..107ef29 100644 --- a/zuul.yaml +++ b/zuul.yaml @@ -4,5 +4,9 @@ default-branch: main templates: - helpcenter-base-jobs - - api-ref-hc-int-jobs - - umn-hc-int-jobs \ No newline at end of file + check: + jobs: + - noop + gate: + jobs: + - noop \ No newline at end of file