You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@causeway.apache.org by da...@apache.org on 2025/07/08 14:48:30 UTC
(causeway) 02/05: CAUSEWAY-3882 : fix for memory limit of antora
This is an automated email from the ASF dual-hosted git repository.
danhaywood pushed a commit to branch 3.4.0
in repository https://gitbox.apache.org/repos/asf/causeway.git
commit 5ade7c4ecbc229896e9ff59c53f4c26744da7aa6
Author: Dan Haywood <da...@haywood-associates.co.uk>
AuthorDate: Tue Jul 8 15:37:47 2025 +0100
CAUSEWAY-3882 : fix for memory limit of antora
---
scripts/ci/_adoc-antora.sh | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/scripts/ci/_adoc-antora.sh b/scripts/ci/_adoc-antora.sh
index 1617ec905fe..c65f2a19659 100644
--- a/scripts/ci/_adoc-antora.sh
+++ b/scripts/ci/_adoc-antora.sh
@@ -48,17 +48,20 @@ if [ -z "$REVISION" ]; then
export REVISION="SNAPSHOT"
fi
-if [ -z "$ANTORA_CMD" ]; then
- ANTORA_CMD=$(command -v antora 2>/dev/null)
- if [ -z "$ANTORA_CMD" ]; then
-# ANTORA_CMD=$(npm bin)/antora #fails with unknown command 'bin' on ubuntu ... our CI build env
- ANTORA_CMD="npx antora"
- fi
-fi
+#if [ -z "$ANTORA_CMD" ]; then
+# ANTORA_CMD=$(command -v antora 2>/dev/null)
+# if [ -z "$ANTORA_CMD" ]; then
+## ANTORA_CMD=$(npm bin)/antora #fails with unknown command 'bin' on ubuntu ... our CI build env
+# ANTORA_CMD="npx antora"
+# fi
+#fi
+ANTORA_CMD="npx antora"
echo "running antora ..."
echo "$ANTORA_CMD --redirect-facility static --stacktrace $PLAYBOOK"
+export NODE_OPTIONS="--max-old-space-size=4096"
$ANTORA_CMD --redirect-facility static --stacktrace $PLAYBOOK
+exit 0
# clean up
rm $PLAYBOOK