Improve python-tools-install.sh alpine compat
[releng/global-jjb.git] / shell / rtd-verify.sh
index 7f403eb..a1b1330 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/bash -l
 # SPDX-License-Identifier: EPL-1.0
 ##############################################################################
 # Copyright (c) 2017 The Linux Foundation and others.
@@ -30,6 +30,16 @@ fi
 git fetch origin "$GERRIT_REFSPEC" && git checkout FETCH_HEAD
 git submodule update
 
+
+# When a new commands are added in lftools, the docs verify job needs to
+# run the new command which requires installing the lftools dev version
+if [[ $JOB_NAME == "lf-infra-lftools-rtd-verify-any" ]]; then
+    # shellcheck disable=SC1090
+    source ~/lf-env.sh
+    lf-activate-venv pip
+    pip install -e .
+fi
+
 echo "---> Generating docs"
 cd "$WORKSPACE"
 tox -edocs