echo "---> rtd-verify.sh"
# Ensure we fail the job if any steps fail.
-# DO NOT set -u as virtualenv's activate script has unbound variables
-set -e -o pipefail
+# DO NOT set -u
+set -xe -o pipefail
echo "---> Fetching project"
if [ "$GERRIT_PROJECT" != "$PROJECT" ]; then
fi
git fetch origin "$GERRIT_REFSPEC" && git checkout FETCH_HEAD
+git submodule update
echo "---> Generating docs"
+cd "$WORKSPACE"
tox -edocs
echo "---> Archiving generated docs"