Add checking of Lua sources to travis build (#2423)
This commit is contained in:
parent
04981f7369
commit
2d2c189a66
|
@ -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
|
||||
--
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue