Skip to content

Commit 7fa86a7

Browse files
committed
fix(cli): install sqlite jdbc driver in test-cli-local.sh for fresh envs
CI reported 362/3/0 — the 3 failures are in TestRunnerSpec, which brings up an ephemeral Lucee server against SQLite and fails if the JDBC driver isn't in LuCLI's lib/ext/. tools/test-local.sh already has this install block; mirror it here so fresh CI runners pass too.
1 parent c8675a7 commit 7fa86a7

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

tools/test-cli-local.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,17 @@ if curl -s -o /dev/null --connect-timeout 2 --max-time 3 "http://localhost:${POR
4545
echo "Using existing server on port ${PORT}"
4646
else
4747
echo "Starting LuCLI server on port ${PORT}..."
48+
49+
# Ensure SQLite JDBC is installed in LuCLI's lib/ext/ — the CLI test
50+
# suite includes specs (e.g. TestRunnerSpec) that bring up ephemeral
51+
# Lucee servers against SQLite. Same fetch block as tools/test-local.sh.
52+
LUCEE_LIB=$(find ~/.lucli/express -path "*/lib/ext" -type d 2>/dev/null | head -1)
53+
if [ -n "$LUCEE_LIB" ] && ! ls "$LUCEE_LIB"/sqlite-jdbc*.jar 1>/dev/null 2>&1; then
54+
echo "Downloading SQLite JDBC driver..."
55+
curl -sL "https://repo1.maven.org/maven2/org/xerial/sqlite-jdbc/3.49.1.0/sqlite-jdbc-3.49.1.0.jar" \
56+
-o "$LUCEE_LIB/sqlite-jdbc-3.49.1.0.jar"
57+
fi
58+
4859
nohup lucli server run --port="$PORT" --force > /tmp/wheels-cli-test-server.log 2>&1 &
4960
SERVER_PID=$!
5061
STARTED_SERVER=true

0 commit comments

Comments
 (0)