Merge "Support PostBuildScript 2.x"
[releng/global-jjb.git] / shell / rtd-verify.sh
index ff06358..61c1974 100644 (file)
@@ -11,8 +11,8 @@
 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
@@ -20,8 +20,10 @@ 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"