mirror of
https://github.com/nodemcu/nodemcu-firmware.git
synced 2025-02-06 21:18:25 +08:00
7de8a01705
* Move luacheck conf and fix Travis for all possible filenames * Add lua script to help with luacheck config * Add xargs approach for current luac.cross file checking * Enable luacheck but do not break build
18 lines
456 B
Bash
18 lines
456 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
echo "Installing Lua 5.3, LuaRocks and Luacheck"
|
|
(
|
|
cd "$TRAVIS_BUILD_DIR" || exit
|
|
bash tools/travis/localua.sh cache/localua || exit
|
|
cache/localua/bin/luarocks install luacheck || exit
|
|
)
|
|
|
|
(
|
|
echo "Static analysys of:"
|
|
find lua_modules lua_examples -iname "*.lua" -print0 | xargs -0 echo
|
|
)
|
|
|
|
(find lua_modules lua_examples -iname "*.lua" -print0 | xargs -0 cache/localua/bin/luacheck --config tools/luacheck_config.lua) || exit
|