X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Frtd-verify.sh;h=a1b1330c2255872a8d54c870cd4dfae1c05f2462;hb=cfe6494e335f277155582ba564bdceae1ee043fd;hp=810a87cb0db4b04c4d05b1bfd55c489611017fd0;hpb=ebfafa6139affe24a2330bd90f59f6adbc033a47;p=releng%2Fglobal-jjb.git diff --git a/shell/rtd-verify.sh b/shell/rtd-verify.sh index 810a87cb..a1b1330c 100644 --- a/shell/rtd-verify.sh +++ b/shell/rtd-verify.sh @@ -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