Add Travis CI and LuaCheck

This commit is contained in:
Panquesito7 2020-05-06 11:42:44 -05:00
parent 29fe3ac467
commit c7d23ba565
No known key found for this signature in database
GPG Key ID: 3C482B03FD220E68
2 changed files with 26 additions and 0 deletions

15
.luacheckrc Normal file
View File

@ -0,0 +1,15 @@
unused_args = false
allow_defined_top = true
max_line_length = 999
globals = {
"minercantile",
}
read_globals = {
string = {fields = {"split", "trim"}},
table = {fields = {"copy", "getn"}},
"minetest", "ItemStack",
"default", "unified_inventory",
}

11
.travis.yml Normal file
View 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