summaryrefslogtreecommitdiffstats
path: root/gitlab-templates/RTD.gitlab-ci.yml
diff options
context:
space:
mode:
authorTrevor Bramwell <tbramwell@linuxfoundation.org>2021-06-29 17:19:26 +0000
committerGerrit Code Review <gerrit@opnfv.org>2021-06-29 17:19:26 +0000
commit202f80f45c6fa8700e06a01e2c682099b28eccc5 (patch)
tree3bd60443a57060f48d8162ab15c6ebd884d20cac /gitlab-templates/RTD.gitlab-ci.yml
parent82b2cb2c60ac4eb9eada3289285e65a17fb1ba5a (diff)
parent0d063a44983220bf4c9f92cbf820374bfaa13845 (diff)
Merge "Add DOCS_REQIREMENTS variable to RTD Gitlab job"
Diffstat (limited to 'gitlab-templates/RTD.gitlab-ci.yml')
-rw-r--r--gitlab-templates/RTD.gitlab-ci.yml8
1 files changed, 6 insertions, 2 deletions
diff --git a/gitlab-templates/RTD.gitlab-ci.yml b/gitlab-templates/RTD.gitlab-ci.yml
index 2846707fd..198ed5bdc 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: