X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=gitlab-templates%2FRTD.gitlab-ci.yml;h=5e2f55b82ec0a636f0f06734e26358de2b3d226a;hb=0d063a44983220bf4c9f92cbf820374bfaa13845;hp=5b838d204a5c304f5024f6b826ed3e4844a8b80b;hpb=4e9d49d672614f68177b1ab3299ec2292ef476ec;p=releng.git diff --git a/gitlab-templates/RTD.gitlab-ci.yml b/gitlab-templates/RTD.gitlab-ci.yml index 5b838d204..5e2f55b82 100644 --- a/gitlab-templates/RTD.gitlab-ci.yml +++ b/gitlab-templates/RTD.gitlab-ci.yml @@ -19,10 +19,14 @@ # # Scheduled builds can be enabled when creating a schedule job and # specifying DOCS_SCHEDULE = "true" in build variables +# +# If extra dependencies are needed for builds they will be installed +# from the $DOCS_REQUIREMENTS location. --- variables: PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" DOCS_DIRECTORY: "docs" + DOCS_REQUIREMENTS: "$DOCS_DIRECTORY/requirements.txt" .docs-cache: &docs-cache paths: @@ -36,8 +40,8 @@ variables: - source venv/bin/activate - pip install Sphinx - | - if [ -f "$DOCS_DIRECTORY/requirements.txt" ]; then - pip install -r "$DOCS_DIRECTORY/requirements.txt" + if [ -f "$DOCS_REQUIREMENTS" ]; then + pip install -r "$DOCS_REQUIREMENTS" fi docs-build: