wifi-tally_Oostendam/nodemcu-firmware/tools/travis/run-luacheck-windows.sh

14 lines
508 B
Bash
Raw Normal View History

2021-09-27 19:52:27 +00:00
#!/bin/bash
set -e
#Download luacheck binary if nessesary
if ! [ -x "cache/luacheck.exe" ]; then
wget --tries=5 --timeout=10 --waitretry=10 --read-timeout=10 --retry-connrefused -O cache/luacheck.exe https://github.com/mpeterv/luacheck/releases/download/0.23.0/luacheck.exe
fi
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/luacheck.exe --config tools/luacheck_config.lua) || exit