Commit 90f53787 authored by François Perrad's avatar François Perrad

Travis: add luacheck

parent 14b96d4e
......@@ -21,6 +21,7 @@ install:
- sudo make install
- cd ..
- sudo luarocks install luacov-coveralls
- sudo luarocks install luacheck
- sudo luarocks install lua-testmore
- sudo luarocks install lsqlite3
- sudo luarocks install luasql-sqlite3
......@@ -30,6 +31,7 @@ install:
# Build and test.
script:
- make luacheck
- make LUA=lua$LUASUFFIX test
- make LUA=lua$LUASUFFIX coveralls
......
......@@ -109,6 +109,10 @@ test.luasql:
test.lsqlite3:
cd src.lsqlite3 && prove --exec=$(LUA) ../test/*.t
luacheck:
luacheck --std=max --no-unused-args src
luacheck --std=max --no-unused-args src.lsqlite3 --ignore err
coverage:
rm -f src/luacov.stats.out src/luacov.report.out
cd src && prove --exec="$(LUA) -lluacov" ../test/*.t
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment