mirror of
https://github.com/MinetestForFun/mysql_base.git
synced 2025-02-08 05:40:19 +01:00
Add Travis CI and LuaCheck (#2)
This commit is contained in:
parent
1a36d6a7d5
commit
00a0c881a2
19
.luacheckrc
Normal file
19
.luacheckrc
Normal file
@ -0,0 +1,19 @@
|
||||
unused_args = false
|
||||
allow_defined_top = true
|
||||
max_line_length = 999
|
||||
|
||||
globals ={
|
||||
"minetest",
|
||||
}
|
||||
|
||||
read_globals = {
|
||||
string = {fields = {"split", "trim"}},
|
||||
table = {fields = {"copy", "getn"}},
|
||||
}
|
||||
|
||||
files["init.lua"].ignore = { "modname", "tab" }
|
||||
files["mysql/mysql.lua"].ignore = { "" }
|
||||
files["mysql/mysql_h.lua"].ignore = { "" }
|
||||
files["mysql/mysql_print.lua"].ignore = { "" }
|
||||
files["mysql/mysql_test.lua"].ignore = { "" }
|
||||
-- ^ Ignore everything
|
11
.travis.yml
Normal file
11
.travis.yml
Normal file
@ -0,0 +1,11 @@
|
||||
language: generic
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- luarocks
|
||||
before_install:
|
||||
- luarocks install --local luacheck
|
||||
script:
|
||||
- $HOME/.luarocks/bin/luacheck .
|
||||
notifications:
|
||||
email: false
|
Loading…
Reference in New Issue
Block a user