Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
2d2c189a
Commit
2d2c189a
authored
Jul 16, 2018
by
Gregor Hartmann
Committed by
Marcel Stör
Jul 16, 2018
Browse files
Add checking of Lua sources to travis build (#2423)
parent
04981f73
Changes
3
Hide whitespace changes
Inline
Side-by-side
lua_examples/lfs/lfs_fragments.lua
View file @
2d2c189a
...
...
@@ -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
--
...
...
lua_examples/mqtt/mqtt_file.lua
View file @
2d2c189a
...
...
@@ -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.
...
...
tools/pr-build.sh
View file @
2d2c189a
...
...
@@ -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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment