X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Ftox-run.sh;h=e87c98f2354a43b3315f7aca8d0c44720955f954;hb=19cb59a5d60873873f6905b97266a8e919796dbc;hp=8be8459f996e7bb2759a697b128853157c3b6bcf;hpb=eeeb5656c1c3aec9ad08918b916263c81ec626b9;p=releng%2Fglobal-jjb.git diff --git a/shell/tox-run.sh b/shell/tox-run.sh index 8be8459f..e87c98f2 100644 --- a/shell/tox-run.sh +++ b/shell/tox-run.sh @@ -51,4 +51,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" archives/ +fi + test "$tox_status" -eq 0 || exit "$tox_status"