Commit 9e17dace authored by François Perrad's avatar François Perrad

Travis: add luacheck

parent 308e5cac
......@@ -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 lua-testlongstring
- sudo apt-get install -qq libssl-dev libexpat1-dev libyaml-dev
......@@ -34,6 +35,7 @@ install:
# Build and test.
script:
- make luacheck
- make LUA=lua$LUASUFFIX coveralls
branches:
......
......@@ -126,6 +126,9 @@ test:
test_eg:
prove --exec=$(LUA) ./eg/*.lua
luacheck:
luacheck --std=max --no-unused-args src
coverage:
rm -f ./luacov.stats.out ./luacov.report.out
-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