aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Andrew D. France 2025-07-23 00:13:09 -0500
committerGravatar Andrew D. France 2025-07-23 00:13:09 -0500
commite4b34ef9f512f2374a6568aac179edc599946d8d (patch)
tree8f0c77578e0a53c51c8a1014b44cde52e8b37dfb
parentCopying the ENTIRE subdirectory as expected: ln:27 (diff)
This final change corrects the test script to align with what the compat53 library actually provides: the compat53 library is designed to bring Lua 5.1/5.2 up to the API level of 5.3, but it doesn't add new syntax to the parser, such as the & bitwise operator.: ln:25-47
-rw-r--r--Jenkinsfile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 0f7f901..122424f 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -31,9 +31,10 @@ pipeline {
print("x =", x)
end
show_x()
- -- Bitwise ops (added in 5.2)
+ -- Bitwise ops (using the bit32 library provided by compat53)
+ local bit32 = require("bit32")
local a, b = 0x5, 0x3
- print("Bitwise AND:", a & b)
+ print("Bitwise AND:", bit32.band(a, b))
-- load() replaces loadstring() (binary and text)
local f = load("return 10 + 20")
print("Loaded result:", f())
@@ -44,7 +45,6 @@ pipeline {
print("--- Test Complete ---")
EOF
'''
-
echo 'Creating and starting the build container...'
// Create the container and keep it running in the background
sh "docker run -d --name ${containerName} lush-app:latest sleep infinity"