Add checking of Lua sources to travis build (#2423)

This commit is contained in:
Gregor Hartmann 2018-07-16 07:48:47 +02:00 committed by Marcel Stör
parent 04981f7369
commit 2d2c189a66
3 changed files with 6 additions and 2 deletions

View File

@ -7,7 +7,7 @@
do
local _,ma,fa=node.flashindex()
for n,v in pairs{LFS_MAPPED=ma, LFS_BASE=fa, SPIFFS_BASE=sa} do
print(('export %s=""0x%x"'):format(n, v)
print(('export %s=""0x%x"'):format(n, v))
end
end
--

View File

@ -43,7 +43,7 @@ m:on("offline", function(conn)
end)
m:on("message",dispatch )
-- Lua: mqtt:connect( host, port, secure, auto_reconnect, function(client) )
m:connect(192.168.18.88,1883,0,1)
m:connect("192.168.18.88",1883,0,1)
-- usage:
-- another client(pc) subscribe to /topic2, will receive the test.lua content.

View File

@ -29,4 +29,8 @@ cd "$TRAVIS_BUILD_DIR"/ld || exit
cd "$TRAVIS_BUILD_DIR" || exit
make clean
make
LUA_FILES=`find lua_modules lua_examples -iname "*.lua"`
echo checking $LUA_FILES
./luac.cross -p $LUA_FILES
)