Use include-regions to limit RTD build paths
[releng/global-jjb.git] / shell / common-variables.sh
index 20c1c5c..6a5d2fb 100644 (file)
@@ -20,3 +20,12 @@ MAVEN_OPTIONS="$(echo --show-version \
     -Dmaven.repo.local=/tmp/r \
     -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r)"
 echo "$MAVEN_OPTIONS"
+
+# Activates the lftools virtualenv
+lftools_activate() {
+    virtualenv --quiet "/tmp/v/lftools"
+    set +u  # Ignore unbound variables in activate
+    # shellcheck source=/tmp/v/lftools/bin/activate disable=SC1091
+    source "/tmp/v/lftools/bin/activate"
+    set -u  # Restore unbound variable checking
+}