X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Frtd-verify.sh;h=2894122ae5f275a6b072795bbf25381771a7f1dd;hb=refs%2Fchanges%2F02%2F72702%2F3;hp=29a991b5b35fc5794ffdb387979a696273020327;hpb=62f08354aaae95b07e6710644d1b7c1e6da8b7bd;p=releng%2Fglobal-jjb.git diff --git a/shell/rtd-verify.sh b/shell/rtd-verify.sh index 29a991b5..2894122a 100644 --- a/shell/rtd-verify.sh +++ b/shell/rtd-verify.sh @@ -28,18 +28,20 @@ if [ "$GERRIT_PROJECT" != "$PROJECT" ]; then fi git fetch origin "$GERRIT_REFSPEC" && git checkout FETCH_HEAD -git submodule update +git submodule update --init --recursive for submod in $(git config -f .gitmodules --get-regexp '^submodule\.(.+)\.url' | awk -e '{print $1}'); do git config --get "$submod" done +# shellcheck disable=SC1090 +. ~/lf-env.sh + +lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv + # 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