X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;ds=sidebyside;f=shell%2Ftox-run.sh;h=c955466c385a54ab6d98eb25cb32f31ded5075c8;hb=4289661f9299da56de34e5ccfe2a6732eb565889;hp=8be8459f996e7bb2759a697b128853157c3b6bcf;hpb=eeeb5656c1c3aec9ad08918b916263c81ec626b9;p=releng%2Fglobal-jjb.git diff --git a/shell/tox-run.sh b/shell/tox-run.sh index 8be8459f..c955466c 100644 --- a/shell/tox-run.sh +++ b/shell/tox-run.sh @@ -11,6 +11,7 @@ echo "---> tox-run.sh" ARCHIVE_TOX_DIR="$WORKSPACE/archives/tox" +ARCHIVE_DOC_DIR="$WORKSPACE/archives/docs" mkdir -p "$ARCHIVE_TOX_DIR" cd "$WORKSPACE/$TOX_DIR" || exit 1 @@ -51,4 +52,12 @@ done echo "Completed tox runs." + +# If docs are generated push them to archives. +DOC_DIR="${DOC_DIR:-docs/_build/html}" +if [[ -d "$DOC_DIR" ]]; then + echo "---> Archiving generated docs" + mv "$DOC_DIR" "$ARCHIVE_DOC_DIR" +fi + test "$tox_status" -eq 0 || exit "$tox_status"